delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/29/19:36:41

Date: Sat, 29 Oct 1994 16:42:26 -0500 (CDT)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: Embedded assembler and comments
To: OKRA AT max DOT tiac DOT net
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Organization: Rockhurst College; Kansas City, MO

>> I just switched to 1.12 and am now getting gas errors on code that
>> used to work (like Sally's FS Debugger) under 1.11.  It looks like embedded
>> comments now cause errors.  Example:
>>  
>> Now causes the following:
>>   g:/cca00071: Assembler messages:
>>   g:/cca00071:745: Error: Rest of line ignored. First ignored character is `*'.
>
>  Compile to assembler and see what the compiler is putting out.

Actually, I think I saw this mentioned as a recognized bug--GCC 2.6.0 tells GAS
that its input has already been preprocessed (to save a little time), but
literal inline assembly fails to get preprocessed because it's quoted...I
suppose you could work around the bug by using the preprocessor's string
concatenation feature ("foo" /* stupid example */ "bar" is equivalent to
"foobar".)

--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp!
-=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=-
Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: 
 GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ U-(S+)>++++ P+ L>++ 3(-) 
 E-(----) !N>++ K- W(--) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) 
 b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?

- Raw text -


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