delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/29/20:04:43

Date: Sat, 29 Oct 1994 17:58:43 -0400 (EDT)
From: Kimberley Burchett <OKRA AT max DOT tiac DOT net>
Subject: Re: Embedded assembler and comments
To: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> 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".)

  Ah... Okay, so why not try giving the assembler a directive that says 
this is no longer preprocessed?
  Try putting a "/APP" and "/NO_APP" in there.  So the assembler sees this:

  compiler code

/APP

  your code

/NO_APP

  compiler code

  Or go over the assember output and find out what the directive is and
try putting in a directive a lot like it but with a "no" in front or
something.  Or use -Wa to pass an option to the assembler to tell it that
the file isn't preprocessed after all.
							Kim

- Raw text -


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