- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear tim18,
Thank you very much for the repsonse :)
Best Regards,
J.B.
Thank you very much for the repsonse :)
Best Regards,
J.B.
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