Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » C compiler that shows assembler code?
Closed Thread
Old 01-08-2005, 12:28 PM   #1 (permalink)
 
Newb Techie

Join Date: Feb 2004

Posts: 8

lordjox

Default C compiler that shows assembler code?

Hey I was wondering if there are any C compilers(preferably a free one) out there that will let you see the assembler code generated of a C program you wrote. Or any program that will translate C code to assembler because I know that C translates to assembler almost 1:1. Thanx.
lordjox is offline  
Old 01-08-2005, 12:43 PM   #2 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

If you're running linux, I'm betting there's the gcc compiler on it.

If you copile using the -S switch, and it will make a file with the .s extension. That'll be the assembly code.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 01-08-2005, 07:56 PM   #3 (permalink)
 
Newb Techie

Join Date: Feb 2004

Posts: 8

lordjox

Default

Thanks for that information. However I am currently using Windows. Do you know of any windows compiler or programs that can generate the assembly code from the c code?
lordjox is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On