Mail Archives: djgpp/1998/10/08/22:24:53
On Thu, 8 Oct 1998, Eric Rudd wrote:
> I have been having trouble with comments in GNU assembler programs. The
> following routine
>
> .globl _test
> _test:
> fldl 4(%esp) /* as.exe 2.7 doesn't like this comment */
>
> ret
>
> produces the message
>
> test.s: Assembler messages:
> test.s:3: Error: Ignoring junk '(%esp) ' after expression
>
> Version 2.8.1 has no problems with this. I tried capitalizing the
> extension:
>
> as test.S -o test.o
Try:
gcc -c test.S
> but this didn't solve the problem. Is there any way of making comments
> compatible with older versions? The docs for "as" say that the #-style
> comment is deprecated, so I'm not sure I should use that, either. I
> think this is a bug in 2.7, but I'd like to find a work-around.
I'm not sure. I do the above -- i.e. call the assembler through
`gcc', using a capital S extension so that it gets passed
through the C preprocessor first.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
xu do tavla fo la lojban -- http://xiron.pc.helsinki.fi/lojban/lojban.html
- Raw text -