This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Assembler Issue
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: Mohammad ali <aliuet213 at yahoo dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 22 May 2002 16:04:25 +0100
- Subject: Re: Assembler Issue
- References: <20020522134450.23081.qmail@web14001.mail.yahoo.com>
Hi Mohammad,
> Most of the work is complete and now I am trying to
> implement various assembler directives.
> I am facing some pbm and need ur kind help.
>
> * How to implement conditional assembly directive like
Why not make use of the C pre-processor ? That way you can have
access to all of the # directives understood by cpp. If you use GCC
then you use it to do this for you automatically. Simply rename your
assembler source file from "foo.s" to "foo.S" (note the capital-S
extension) and gcc will know to pass the code through the
pre-processor first.
Cheers
Nick