Regarding compiling a program with different options
I am suing RHEL.I have a small C/Cpp program and I am trying the possible combinations during compilations that I can use.I want to see the output of all the options I am trying to redirect this output in a file but I dont get to see the output in the file.This is what I am trying to do
My c program is named as prog4.cpp Quote:
Thanks Regards, Ajit |
Sorry the word is using and not suing
|
It's not possible to see the effects of those options in something other than the compiled file. You can direct GCC to compile the C file and stop at the assembly. By comparing the assembly files, you might see the effects of the options.
If that's what you're after, try this command Code:
gcc -S -o output.asm input.c |
Hi Modprob.I tried your suggestion but I dont see much difference in the two asm files that I run with with the options.
Thanks for letting me know the -S option though:) |
The fno-inline option is a hint to GCC. It can choose to ignore it.
|
All times are GMT -5. The time now is 03:33 AM. |