- Nested structures were a challenge. A function inside a function/class needs us to build correct scoping as well as deal with dependencies.
- This is dealt by the class:StackVarRuntimeInfo and function:getStackVar. Dynamic links were maintained in the call stack for each function to access stack frames of previous function.
- Testing various scenarious with similarly defined variables were time consuming.
- Synchronizing the implementation was extra challening for pa3 compared to previous ones. Reason was the flexbility and freedom of the code generation step. Our RISC-V code did not need to match the one generated by reference compiler though we tried to get as close to it as we can.
- Added extra error state to the compiler if the actual parameter and formal parameter of the function can not resolve to a type. For example, if function expects an integer type parameter while the caller passes in a string typed param then our compiler will warn the user accordingly