delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/13/20:30:43

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: nospam AT none DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: obtaining GCC -march setting in code?
Date: Fri, 14 Nov 2003 01:25:45 +0000 (UTC)
Organization: University of California, Berkeley
Lines: 14
Sender: Raymond Chi <chiry AT soda DOT csua DOT berkeley DOT edu>
Message-ID: <bp1aup$27cp$1@agate.berkeley.edu>
NNTP-Posting-Host: soda.csua.berkeley.edu
X-Trace: agate.berkeley.edu 1068773145 73113 128.32.112.233 (14 Nov 2003 01:25:45 GMT)
X-Complaints-To: usenet AT agate DOT berkeley DOT edu
NNTP-Posting-Date: Fri, 14 Nov 2003 01:25:45 +0000 (UTC)
User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (FreeBSD/4.7-STABLE (i386))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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

I want the code to be able to output something like:

built for "pentium3" with "sse"....

Basically something telling the user how the program is compiled and
for what platform...

Thanks.

Raymond

- Raw text -


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