This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Seeing changes made by optimization option


Hi,
for the purposes of seeing what is going on, you could put the code you are concerned about into a function in its own source file then compile this file (g++ -c) twice once using the using optimization and once normal. Then use objdump -d to see what the compiler did.
burlen



Cristea Bogdan wrote:
Is there a way to see how the code is changed by the optimization
option of gcc compiler ? I need this to see were in my program there
is a sensitive zone and to change it.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]