- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I compile a program with the /Qsox option, how can I extract the compiler options and version info from the executable? Thanks.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - vivekrao4@yahoo.com
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/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]
![](/skins/images/045A6C88D0527A93E76B179D7F5E2AFE/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page