delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/04/09:15:35

Date: Wed, 04 May 94 07:52:19 -0400
From: pmiller AT pmiller DOT hdos DOT hac DOT com (Peter E. Miller)
To: leisner AT sdsp DOT mc DOT xerox DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: ifdefs in assembler
Reply-To: miller AT hac2arpa DOT hac DOT com

 > I want to modify crt0.s.
 > 
 > It seems the assembler files are of the format
 > 
 > #ifdef FOO
 > foo
 > #else
 > bar
 > #endif
 > 
 > 
 > Seems like the assembler doesn't understand these macros
 > and does foo and bar...
 > 
 > Do I have to make a special rule to pass
 > the assembler files through the preprocessor?

Does compiling it as 'crt0.S' (instead of 'crt0.s') work?  That's the
usual method to tell gcc to run the preprocessor on assembler.

--
Peter E. Miller



- Raw text -


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