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 Message-ID: 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