This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Inability to use divide symbol in gas
- From: Nick Clifton <nickc at redhat dot com>
- To: "Hamilton, Ian" <Ian dot Hamilton at gbr dot xerox dot com>
- Cc: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
- Date: Fri, 05 Dec 2003 12:02:20 +0000
- Subject: Re: Inability to use divide symbol in gas
- References: <8EAC52A94CD8D411A01000805FBB37760615AF0D@gbrwgcms02.wgc.gbr.xerox.com>
Hi Ian,
> Is there a commonly accepted work-around? For example, can the
> preprocessor be turned off around that section of source,
Yes - see the assembler documentation for a descriptions of the #NO_APP
directive.
> or is there a configure option which allows a version of gas to be
> built that does not use / for comments?
Yes - try: i686-pc-linux-gnu
> For those that are interested, here's a short source file which
> demonstrates the problem. It fails on the assignment to symbol4,
> complaining that there is a missing ')'
> symbol1 = 20
> symbol2 = 10
> symbol3 = (symbol1 * symbol2)
> symbol4 = (symbol1 / symbol2)
Whereas this version does not:
#NO_APP
#APP
symbol1 = 20
symbol2 = 10
/* this is a comment */
symbol3 = (symbol1 * symbol2)
#NO_APP
symbol4 = (symbol1 / symbol2)
#APP
Cheers
Nick