Are gas macros case insensitive?

Paulo Pinto pjmlp@progtools.org
Sun Feb 17 13:27:00 GMT 2013


Hi everyone,

I am trying to port a code generator based in NASM macros to as.

It is dumb code generator where bytecodes are mapped to macros, which
are then processed
into assembly instructions.

The problem is that it seems as is case insensitive when dealing with
macros, so JMP gets called
when the jmp opcode is used.

For example the following macro gives the following error: "Fatal
error: macros nested too deeply".

.macro  JMP    target
    jmp    \target
.endm

If I rename the JMP macro to something else, the code is generated properly.

Is there any way to make AS case sensitive?

Thanks in advance,
Paulo



More information about the Binutils mailing list