Adriaan van Os wrote:
Frank Heckenbach wrote:
BTW, a future GPC version might allow macros that expand to compiler-directives, but AFAICS this wouldn't help here since you'd need this on the MW side where it apparently isn't possible.
Still, this is an interesting idea in other situations. For example {$align powerpc} is a much needed compiler directive in MW. If we can define {$align powerpc} to be a macro in GPC, writing source-code for two compilers becomes easier.
That's not actually what I meant, sorry. I meant macros, not compiler directives that expand to other compiler directives. The latter would probably be more work. For macros, it's natural (and easier) to do this since they expand to program text -- only the current preprocessor architecture gets a bit in the way.
At least, you might then be able to define a macro, say `ALIGN_POWERPC' that expands to `{$local maximum-field-alignment=32}' in GPC and nothing in MW ...
Frank