1. How are local variables resolved to memory addresses during the translation of intermediate code to target code by the code generator? Draw the stack layout showing the local variables.
2. How are numeric and string literals in the intermediate code translated to the target code? Illustrate with an example each.