C pre-processor with ObjAsm labels
Cameron Cawley (3514) 158 posts |
I’m currently attempting to use the C pre-processor as a slightly hacky way of getting assembly code to build with both ObjAsm and GAS with macros like this: #ifdef __CC_NORCROFT However, for some reason with ObjAsm this inserts multiple spaces before the label, which results in syntax errors. GAS doesn’t appear to have this problem and outputs the labels without any extra spaces. Is there anything that can be done about this? |
Simon Willcocks (1499) 519 posts |
Does this (without a space between the parentheses and x) work? #define L(x)x: |