Re: Question on multiple compiler environment
- From: beliavsky@xxxxxxx
- Date: 27 Sep 2006 07:41:42 -0700
simon@xxxxxxxxxxxxxx wrote:
With the Intel v8.0 compiler on windows you can insert text into the
object:
ifort -help
...
/V<text> embed version text in executable
/bintext:<string>
place the string specified into the object file
I think this is also true of the later and Linux versions of the
compiler. Not quite sure how you use this facility though!
Thanks for mentioning these options. Both also exist on IVF 9.1 for
Windows.
I can embed a version string and then search for it using a Windows
batch file like this
@ echo off
:: version string to be embedded
set vers=versionxyz_
set str=abcd
set full=%vers%%str%
set srcs=twice.f90 xtwice.f90
if exist %exec% del %exec%
set exec=temp.exe
ifort /nologo /bintext:%full% /exe:%exec% %srcs%
if exist %exec% %exec%
:: show the version number
findstr %str% %exec%
but findstr is meant for searching text files, and the output is ugly.
.
- 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: simon
- Question on multiple compiler environment
- Prev by Date: Re: factorial n! program
- Next by Date: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Previous by thread: Re: Question on multiple compiler environment
- Next by thread: Re: Question on multiple compiler environment
- Index(es):
Relevant Pages
|