(This means that for this milestone we won't have any references to array elements: the only reason for including arrays under "Variables" (above) is to allow us to call print_string("\n"), which makes it easier to print out values..)
extern void print_int(int x);For example, a program might look like this:
extern void print_string(char x[]);
extern void print_int(int x);In addition to the assembly code generated for the program, you should generate the instruction sequence for the functions print_int() and print_string(), as described in the document Notes on Translating Three-Address Code to MIPS Assembly Code.
extern void print_string(char x[]);
void main( void ) {
print_int(12345); print_string("\n");
}