Klaas-Jan Stol wrote:
Hi, attached a document describing the current macro layer of IMCC.

On the proposed modifications to macros, I have reservations on the automatic munging of .local variable names. Macros are simple parameterized substitutions. If someone includes a '.local' in a macro, it's likely that they'll expect it to appear literally in the body:

.macro declare_my_locals(x)
  .local int $x
.endm

.sub bar
  .declare_my_locals(foo)
  foo = 5
  print foo
  ...
.end

And unlikely that they'll want it to appear munged for a particular macro name:

.sub bar
  .declare_my_locals(foo)
  local_declare_my_locals_foo = 5
  print local_declare_my_locals_foo
  ...
.end

Comments?

Allison

Reply via email to