When we compile code with “–save-temps” option of gcc it generates 3 output files
compile code without optimization option :
gcc file.c -o file –save-temps
compile code with optimization option :
gcc -O3 file.c -o file –save-temp
- Preprocessed Code (having .i extension)
- Assembly Code (having .s extension)
- Object Code (having .o extension)
compile code without optimization option :
gcc file.c -o file –save-temps
compile code with optimization option :
gcc -O3 file.c -o file –save-temp
No comments:
Post a Comment