Inability to use divide symbol in gas
Nick Clifton
nickc@redhat.com
Fri Dec 5 12:06:00 GMT 2003
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
More information about the Binutils
mailing list