Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

OBJ differences between Intel Compiler and VC Compiler

jbintel
Beginner
656 Views
Hi,
I am working on a tool that will use information from OBJ files. Ultimately I'd like the tool to be compatible with both Intel and Microsoft VC compilers. So any help on the following questions would be really appreciated:

1. Does Intel Compiler use the same name decoration algorithm as the VC compiler? Meaing, when compiling the same target source, the OBJs produced by both compilers will have the same decorated names for every variable/function..etc.

2. By looking into section dumps, I notice Intel Compiler combines ALL of the local variables in one section in RDATA. Unlike VC compiler every local variable of different name is in an independent section. Is there a switch that can change Intel Compiler's behaviour to be the same as VC compiler?

Thanks in advance,
J.B.



0 Kudos
2 Replies
TimP
Black Belt
656 Views
1. I think you refer to the C++ name mangling, which has to be the same for compatibilit y, in the absence of IPO (when /GL- is set for both compilers).
2. I wasn't aware of this particular issue. Some differences in layout date back to a time when Microsoft didn't permit other compilers to duplicate their scheme. I don't believe there is any option to control it.
jbintel
Beginner
656 Views
Dear tim18,
Thank you very much for the repsonse :)

Best Regards,
J.B.
Reply