Questions about .macro assembler directive
Brought to you by:
jameslarus
Mr. Larus,
A tutorial introduced me to the use of the .macro and .end_macro directives. This feature is available in a competing MIPS IDE but I prefer to use your QTSpim.
Because I am new to MIPS, I'm interested in knowing your thoughts about the utility of directive. Is it another psuedo step away from the standard? Is the use of #define better suited for defining MIPS macros in a C header file such as the book example in "See MIPS Run "?
Anonymous
It might be useful, but the tradition in most unix systems was to have a simple assembler and use the m4 preprocessor to implement macros. I don't see much benefit in implementing this feature in spim since it would just apply m4 to the file before reading it in.