Tuesday, July 28, 2009

Do we have a program that can convert c to assembly?

I want a program that get .c /.cpp file as an input (they are c's files) and has output file .asm(It is assembly file).

Do we have a program that can convert c to assembly?
This is typically a feature of your compiler. I don't know how


to configure the Microsoft compilers for this, but pretty much


any Unix/Solaris/Linux compiler will generate assembly when


given the "-S" switch:





  $ CC -S foo.cpp





or





  $ gcc -S foo.c


No comments:

Post a Comment