Consider the following excerpt of assembly code written for the Nios II embedded processor architecture:
.section .data
.align 2
va: .long 0x0
vb: .long 0x11223344
vc: .long 0x55667788
The following needs to be done:
- Allocate enough memory for all three variables
- Ensure the memory allocated is contiguous
- Translate instructions that use a variable's name into instructions that use the variable's address
I don't see how this can be done through the instruction set and was hoping for some insight on how the translation of the code above to the instruction set occurs.