When I use gcc -S -O2 test.c , the main function part in the output .s file is empty. But my last try with gcc -S test.c works normally. The C code was correctly compiled to asembly file. Plz tell me how to use the optimization options.
When I use gcc -S -O2 test.c , the main function part in the output .s file is empty. But my last try with gcc -S test.c works normally. The C code was correctly compiled to asembly file. Plz tell me how to use the optimization options.
![]() |