PDA

View Full Version : peek at passed gcc arguments on build and run




moralreef
Feb 27, 2012, 09:51 PM
hello team.

I'm looking to gain a lot more knowledge in my passing ignorance of compiler arguments and commands, and thought the likely best way to start is to tweak the compiler instructions in xcode 4.2 and see how it affects what is feeding into gcc/clang.

any idea how to achieve this?



itsmrjon
Feb 28, 2012, 12:43 AM
hello team.

I'm looking to gain a lot more knowledge in my passing ignorance of compiler arguments and commands, and thought the likely best way to start is to tweak the compiler instructions in xcode 4.2 and see how it affects what is feeding into gcc/clang.

any idea how to achieve this?
If I have a correct understanding of what you're trying to achieve:
compile with -v -Wall

This will give you a verbose output of everything the compiler is doing.

gnasher729
Feb 28, 2012, 04:59 AM
hello team.

I'm looking to gain a lot more knowledge in my passing ignorance of compiler arguments and commands, and thought the likely best way to start is to tweak the compiler instructions in xcode 4.2 and see how it affects what is feeding into gcc/clang.

any idea how to achieve this?

"Show Log Navigator" (command-7), click on one of the "Build" items, switch on "All" instead of "Recent" and "All Messages", click on the line that built an item you are interested in, and expand with the "multi-line" symbol on the right.