Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28593 Discussions

/Qsox option to save compiler options and version info

vivekrao4
Beginner
304 Views

If I compile a program with the /Qsox option, how can I extract the compiler options and version info from the executable? Thanks.

0 Kudos
3 Replies
Steven_L_Intel1
Employee
304 Views
From the executable? Notepad or some utility that searches for strings. Also, if you are using VS2005, then the string won't be there. You can get it from the object with "dumpbin -directives".
0 Kudos
carlls
Beginner
304 Views

If I compile a program with the /Qsox option, how can I extract the compiler options and version info from the executable? Thanks.

I know the keyword here is executable, but what if I want to have the data tucked into the obj? As in a string that might look like:

ifort Version 9.1 Build 20060925, ifort flags -Qzero -Od -Qopenmp -Z7 -MD -RTCu -Qsox -check:all

I guess I could use /bintext? ... is that the right thing to do?

0 Kudos
Steven_L_Intel1
Employee
304 Views

/Qsox does place the string in the .obj.

[cpp]F:MyProjects>ifort /c /Qsox end.f90
Intel Visual Fortran Compiler Professional for applications running on IA-32,
 Version 11.0    Build 20081105 Package ID: w_cprof_p_11.0.066
Copyright (C) 1985-2008 Intel Corporation.  All rights reserved.


F:MyProjects>dumpbin -directives end.obj
Microsoft  COFF/PE Dumper Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file end.obj

File Type: COFF OBJECT

   Linker Directives
   -----------------
   -?comment:"Intel
   Fortran
   Compiler
   Professional
   for
   applications
   running
   on
   IA-32,
   Version
   11.0
   Build
   20081105
   %s
   :
   end.f90
   :
   -c
   -Qsox"
   -?comment:"Intel
   Fortran
   Compiler
   Professional
   for
   applications
   running
   on
   IA-32,
   Version
   11.0
   Build
   20081105
   %s
   :
   end.f90
   :
   -c
   -Qsox"
   -defaultlib:"ifconsol"
   -defaultlib:"libifcoremt"
   -defaultlib:"libifport"
   -defaultlib:"libmmt"
   -defaultlib:"LIBCMT"
   -defaultlib:"libirc"
   -defaultlib:"svml_disp"
   -defaultlib:"OLDNAMES"[/cpp]

0 Kudos
Reply