Menu

#25 Questions about .macro assembler directive

open
nobody
.macro (1)
1
2021-09-22
2021-09-12
Anonymous
No

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 "?

Discussion

  • James Larus

    James Larus - 2021-09-20

    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.

     
  • Anonymous

    Anonymous - 2021-09-22
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB