473,396 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Silly compiler switches

JD
Hi folks,
I am developing a COM-ATL application with VS2003.NET, and I run into this
situation:

I have built the app to a satisfactory point and after that I start playing
with compiler optimization switches.

I would like to go back to initial switch settings.

I kept the initial bins version .exe & stuff of the program. Below is a
comparison (disassembly) example of the original version and the actual
version:

Any ideas what will be the compiler switches to get to the initial bin
generated?

C++ constructor _initterm( __xc_a, __xc_z ) for CComModule _Module;

Initial:

push esi

mov esi,offset _Module

mov ecx,esi

call ATL::CAtlModule::CAtlModule

push offset $E6

mov dword ptr [_Module],offset ATL::CComModule::`vftable'

mov dword ptr [ATL::_pModule],esi

call _atexit

pop ecx

pop esi

ret

Actual:

mov ecx,offset _Module

call ATL::CComModule::CComModule

push offset $E6

call atexit

pop ecx

ret

ATL::CComModule::CComModule:

push esi

mov esi,ecx

call ATL::CAtlModule::CAtlModule

mov dword ptr [esi],offset ATL::CComModule::`vftable'

mov dword ptr [ATL::_pModule],esi

mov eax,esi

pop esi

ret

Actual Compiler switches are:

/Og /Ob2 /Oi /Os /Oy /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /GF /FD /EHsc /MD
/GS

/Yu"stdafx.h" /Fp"Release/MyApp.pch" /Fo"Release/" /Fd"Release/vc70.pdb" /W3
/nologo /c /Zi /TP

Thanks

JD
Nov 17 '05 #1
0 986

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Adam | last post by:
I'm just starting to try and learn my first comp language. However, I'm so new to this I don't even know how to get the compiler to work that came with my Jamso's C++ book. I've read the readme...
2
by: Ágoston Bejó | last post by:
Hi there, In the old Pascal-times, you could set compiler switches in the source code, with a syntax like {$G+}, things like that (I don't remember them accurately anymore). Is there something...
13
by: Bryan Parkoff | last post by:
You may notice that switch (...) is much faster than function that can gain a big improved performance because it only use JMP instruction however function is required to use CALL, PUSH, and POP...
14
by: Hugh Cowan | last post by:
Hello, I am looking at getting a simple compiler for Windows that I can use to play around with different Open Source software. I am not a full-time programmer (anymore), nor do I plan to...
14
by: joshc | last post by:
I'm writing some C to be used in an embedded environment and the code needs to be optimized. I have a question about optimizing compilers in general. I'm using GCC for the workstation and Diab...
3
by: Konrad Hinsen | last post by:
I am trying to install Python 2.4.3 on an AMD Opteron system using the Portland Group's compiler (pgcc). Using CC="pgcc -DNCURSES_ENABLE_STDBOOL_H=0" OPT="-O0" LINKFORSHARED="-Wl,- ...
2
by: justmehere | last post by:
My understanding that this compiler is from the Borland Builder C++ 5.5 Compiler. Does anyone know where to find the complete reference for using regular expression with this compiler and the...
87
by: rufus | last post by:
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line?
10
by: r035198x | last post by:
There are a lot of common C mistakes. I have put together the ones I consider to be the silliest made by C programmers. These are usually the source of the popular C programming tears and remembering...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.