macro on assembler
Art Berggreen (art@acc.com)
Wed, 7 Oct 1998 11:58:42 -0700
>
>GAS doesn't know anything about macros, conditional assembly etc., as
>it was developed only to assemble the stuff that comes out of a
>compiler. If you want to use macros and the like, you'll need to preprocess
>the file with 'gasp' (the GNU assembler preprocessor) and pipe the
>output of gasp into gas:
>
>gasp <options> <sourcefile> | as <options>
While it is true gas developed primarily to handle compiler output,
there is a lot of other support available. The gas in binutils-2.9.1
has support for .macro and .if psuedo OPs along with many others.
We have used the .macro capability for m68k assembler source files.
Art
________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.