www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/08/17:22:26

From: Eric Rudd <rudd AT cyberoptics DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Comments cause GNU assembler problems
Date: Thu, 08 Oct 1998 14:43:26 -0500
Organization: CyberOptics
Lines: 27
Message-ID: <361D15DE.4272C4C6@cyberoptics.com>
NNTP-Posting-Host: rudd.cyberoptics.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.05 [en] (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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

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.

-Eric Rudd
rudd AT cyberoptics DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019