Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: SuperBoi45 on September 18, 2012, 06:12:35 pm

Title: How do I view the assembly code of my C++?
Post by: SuperBoi45 on September 18, 2012, 06:12:35 pm
I see a panel that says "Disassembly" and I click that after running my program. I expect it to show the assembly code of my C++ but it doesn't show anything at all.

[Note: It's the leftmost button that, when you put your cursor over, says "Debugging windows"]

(http://gyazo.com/639fd335b7c81edf2c14a2bfa8781528.png)

(http://gyazo.com/a71a5ac7d5551ed116b2b27e740c466d.png?1347983616)

It never shows anything. I even put in the command line argument (http://gyazo.com/197070eb3d98125cf408415d24e79427.png?1347983691) option. But yet nothing shows up! Please, can someone help me?!
Title: Re: How do I view the assembly code of my C++?
Post by: zabzonk on September 18, 2012, 06:19:02 pm
It's one of the debugger windows. It will only show assembler code when you are debugging.
Title: Re: How do I view the assembly code of my C++?
Post by: SuperBoi45 on September 18, 2012, 06:20:55 pm
How do I debug? Sorry, I'm new to Codeblocks and C++. Please reply with detail! :)
Title: Re: How do I view the assembly code of my C++?
Post by: zabzonk on September 18, 2012, 06:31:20 pm
It works pretty much like debuggers everywhere. Position the editor cursor at the first statement in main(), then choose "Run To Cursor" from the Debug menu. Then mess around with the other Debug menu options to step through your code.