Re: Question on multiple compiler environment
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 09:28:15 -0700
Mark Westwood wrote:
(snip)
But what I really want is a way of determining, from the binary, what
compiler flags were used in its creation. I suspect that the only way
of doing this is to get to grips with the autotools and, as one earlier
poster suggested, that looks HARD.
Most C compilers set preprocessor symbols for things like the OS, compiler, compiler version, and maybe a few more. I don't know of any
that set flags, but you could add them with -D in the Makefile or other
compilation method. That should work if you use the C preprocessor on
Fortran code.
Otherwise, compilers that write debugging data to the object file,
such as the -g option on GNU compilers, might also write compilation
flags. It would be system dependent, though.
-- glen
.
- References:
- Question on multiple compiler environment
- From: Matthias Möller
- Re: Question on multiple compiler environment
- From: Arjen Markus
- Re: Question on multiple compiler environment
- From: Matthias Möller
- Re: Question on multiple compiler environment
- From: beliavsky
- Re: Question on multiple compiler environment
- From: Janne Blomqvist
- Re: Question on multiple compiler environment
- From: Brooks Moses
- Re: Question on multiple compiler environment
- From: Mark Westwood
- Question on multiple compiler environment
- Prev by Date: Re: Stack size, and warnings
- Next by Date: Re: comment and IBM xlf
- Previous by thread: Re: Question on multiple compiler environment
- Next by thread: Re: Question on multiple compiler environment
- Index(es):
Relevant Pages
|
|