This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: macro on assembler


>
>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.