2009-04-13, 12:20
I think I finally got how to port XBPythonDllFuncs.S to ppc.
Not sure it is working yet.
I have one "stupid" pb, that is the definition of the macro.
For x86, we have:
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).
Right now, I don't see how to do without 2 macros... which I find a bit ugly...
Any idea?
Not sure it is working yet.
I have one "stupid" pb, that is the definition of the macro.
For x86, we have:
Code:
#define FUNCTION(name) \
.globl _##name; \
_##name: \
.....
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).
Right now, I don't see how to do without 2 macros... which I find a bit ugly...
Any idea?