delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/14/04:00:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: obtaining GCC -march setting in code?
Date: 14 Nov 2003 08:36:16 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 20
Message-ID: <bp2460$lp7$3@nets3.rz.RWTH-Aachen.DE>
References: <bp1aup$27cp$1 AT agate DOT berkeley DOT edu>
NNTP-Posting-Host: ac3b07.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1068798976 22311 137.226.33.205 (14 Nov 2003 08:36:16 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 14 Nov 2003 08:36:16 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

nospam AT none DOT com wrote:

> Is there a way to get the gcc's -march=XXX and -mfpmath=YYY type in
> the c/c++ code?

To some extent.  If you inspect the 'specs' file carefully, you'll
find preprocessor macros triggered for every -march -mcpu option.  I
expect similar ones for fpmath, but don't have a DJGPP installation of
GCC 3 at hand to check.

The best way probably is to not try and do this automatically, but rather
just use the preprocessor explicitly, i.e.

	-march=XXX -DCPUTYPE="XXX"
	-mfpmath=YYY -DFPMATH="YYY"


-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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