converting c code to assembly language

WeiWei

Member
Sep 6, 2003
183
0
0
Hi,

I'm looking for a utility that will convert c code to assembly language, anybody know of any ?

Tried googling for it but could get any

Any help is greatly appreciated.

Thanks
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
That's essentially what any compiler does. The only difference between that and normal compilation is that you have to stop it before the assembler has it's go. Pick a compiler, find out how to get it to stop before the assembly process. I imagine gcc is what you want but I don't know the correct arguments for this task.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Originally posted by: agnitrate
gcc -S source.c

-silver

doh! beat me to it!

I had to do this for one of my projects this year...nobody in class could figure it out except for me :( Kinda scary!
 

AyashiKaibutsu

Diamond Member
Jan 24, 2004
9,306
4
81
If your not good with assembler gcc will give you useless code because you won't beable to understand it sufficiently to optomize it. Borland atleast gives some semi useful comment.