2

Possible Duplicate:
How to generate assembly code from C++ source in Visual Studio 2010

Is it possible to compile C++ into assembly code in Visual Studio 2010 (or a free IDE) for a specific processor (for example, a microcontroller)?

Thanks in advance for your help.

Community
  • 1
  • 1
JonaGik
  • 1,533
  • 5
  • 24
  • 35
  • try CodeVision for Other Microprocessors. you can write C code for a Micro. ofcourse it's binary file is assembly for that micro. – Behnam Safari Feb 21 '12 at 08:53
  • @MadhurAhuja My understanding is that that question refers to the compilation of assembly code for the system the IDE is installed on, not a specific other processor. – JonaGik Feb 21 '12 at 09:00
  • Why was this closed?! It isn't a duplicate - it's importantly different! – JonaGik Feb 21 '12 at 09:08
  • @JonaGik- there has been quite a few people who voted to close it as the duplicate of FAQ. try checking it and if it doesnt answer your question repost or request answer. – Rohit Vipin Mathews Feb 21 '12 at 11:00

1 Answers1

1

it should be possible. i have converted c code to assembly.

Simply compile it with the option for an assembly listing.

use /FA switch

this will generate the required assembly code but if you want it to be micro processor specific i think you need to do more research. Not all micro processors support same assembly codes. try using the generated assembly code in a simulator.

Rohit Vipin Mathews
  • 11,629
  • 15
  • 57
  • 112