Date: Fri, 9 Oct 1998 00:50:50 +0100 (BST) From: George Foot To: djgpp AT delorie DOT com Subject: Re: Comments cause GNU assembler problems In-Reply-To: <361D15DE.4272C4C6@cyberoptics.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com 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