Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to print ld command line while compling with gcc (http://www.go4expert.com/forums/print-ld-command-line-compling-gcc-t25656/)

jackliang 28Apr2011 08:39

How to print ld command line while compling with gcc
 
Hi, everyone. I'm not sure GCC's optimization options such as -O1 ... -O5 are needed at linkage, so I'm thinking about print the ld command that the gcc invokes. You know, GCC has a -v option, but only shows the collect2 command line at linkage.
So,how can I print the ld command line?
Thanks in advance!
Waiting online...


All times are GMT +5.5. The time now is 11:19.