MS/CW-style inline assembly for GCC
Ian Lance Taylor
ian@wasabisystems.com
Fri May 7 22:52:00 GMT 2004
Stan Shebs <shebs@apple.com> writes:
> In any case, I originally proposed this as a documented addition to
> GCC, irrespective of how it's implemented. So let's finish thinking
> about this in terms of whether and how the user manual is going to
> change, before deciding about the best way to write the code.
Well, if it's a separate tool, then the change to the gcc user manual
seems pretty simple.
-ftranslate-asm
Run the afront asm translator tool after preprocessing. This
implements a different syntax for inline assembler. See the afront
documentation for details.
But I admit that I am curious as to how you documented your
implementation of the CW asm syntax. The example which Andrew posted
included things which looked like structure fields being used as
offset values. Presumably __asm_get_global_ptr stores the address of
a global variable in a register.
Ian
More information about the Gcc
mailing list