3 Replies - 1095 Views - Last Post: 05 February 2008 - 11:45 AM Rate Topic: -----

#1 hoofinasia  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 26-January 08

Assembly from compiliers

Post icon  Posted 04 February 2008 - 09:04 PM

This might be a dumb question, but how do I get an assembly output from a compiler. There should be a way to get asm peppered with C++. For reference, I'm using the MinGW compiler OR VS Express OR Visual Studio 2005 OR Netbeans. I've tried all the usual information alleys, including asking profs, but nobody can remember, and then nobody can remember to look it up for me.
Is This A Good Question/Topic? 0
  • +

Replies To: Assembly from compiliers

#2 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Assembly from compiliers

Posted 05 February 2008 - 11:25 AM

Please elaborate:"Assembly output from compiler"
Was This Post Helpful? 0
  • +
  • -

#3 GWatt  Icon User is offline

  • member icon

Reputation: 278
  • View blog
  • Posts: 3,079
  • Joined: 01-December 05

Re: Assembly from compiliers

Posted 05 February 2008 - 11:35 AM

If you want to take c code, and convert it into assembly. It will give you a file just full of asm.
gcc -S cfile.c
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5411
  • View blog
  • Posts: 27,417
  • Joined: 10-May 07

Re: Assembly from compiliers

Posted 05 February 2008 - 11:45 AM

View Posthoofinasia, on 4 Feb, 2008 - 09:04 PM, said:

This might be a dumb question, but how do I get an assembly output from a compiler. There should be a way to get asm peppered with C++. For reference, I'm using the MinGW compiler OR VS Express OR Visual Studio 2005 OR Netbeans. I've tried all the usual information alleys, including asking profs, but nobody can remember, and then nobody can remember to look it up for me.

Check the documentation for your compiler. I use a command line Borland compiler on Windows, & I believe the option is -a. The option is different for gcc, & since you are using Visual... well, you'll have to check the documentation.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1