Re: C++ to Low level language
Re: C++ to Low level language
- Subject: Re: C++ to Low level language
- From: Jens Alfke <email@hidden>
- Date: Wed, 06 Jul 2011 21:31:59 -0700
On Jul 6, 2011, at 8:50 PM, Jos Timanta Tarigan wrote:
> Im currently trying to check how my codes work on the machine level language. Is it possible to check see how our C++ program interpreted into a low level language by the compiler? Im using OS X and XCode as IDE.
What you’re looking for is the ‘disassembly’. In Xcode 4 you can look at it by opening the assistant editor, and from its source pop-up (the one that usually says “Counterparts”) choosing “Disassembly”. In Xcode 3 there’s a “Disassemble” command in the Build menu.
You can also run the ‘otool' command on the compiled binary file, but the output is usually harder to read and it always takes me 15 minutes to figure out the right command-line options to show what I want to see.
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden