Skip to main content
GameDev.net gamedev.net
🔒 Locked

Dev-cpp ASM - quick question

Started by Ronin Magus Feb 25, 2003 at 1:53 PM 2 replies 350+ views
Original Post
Ronin Magus
Ronin Magus
Is there any way to view the ASM output from dev-cpp''s compiler?
aut viam inveniam aut faciam MoonStar Projects
Null and Void
Null and Void
I don''t know if the IDE has an option for it, but GCC will output assembly code when given the -S switch.

SwSh
SwSh
Assuming you''re using gcc3.2 (mingw32), you can use the -S option to generate asm listings of your program. (AT&T style assembly)
Project -> Project Options -> Add. Comm.line options -> Compiler: add "-S" (without quotes)
Then rebuild the project. At the end of compilation, you''ll get an error that your executable could not be linked. (ofcourse) The asm code should be in the *.o files and you''re ready to dig in.

6x500


Click NOW!
Ronin Magus
Ronin Magus
Thanks guys, 2 seconds apart

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.