2009-04-14, 07:21
Beenje Wrote:As the macro is expanded to one line. The ";" character is used to end the ".globl" line declaration.
The problem is that ";" is the comment character for PowerPC.
So it can't be used to end the ".globl" declaration.
I haven't found how to do that without a CR (which can't be used in the macro).
Any idea?
Thanks a lot to phi for giving me the answer!
Character to use is "@".
Code:
#define FUNCTION(name) \
.globl _##name @\
_##name: @\
...........