Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

C language to Assembly

Status
Not open for further replies.

lipming

Newbie level 5
Newbie level 5
Joined
Mar 23, 2008
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,400
IS there any software that can convert C code into assembler code?
 

you dont get anything like that because the syntax and instruction set are different for different controllers.... There is no generic tool as such.....

Most cross compiler will have an assembler which converts C to asm language when you compile..
In keil you have option of disassembly window to view it... similarly in compilers for pic you have options
 
in gcc
gcc -Wa,-ahls,-L -g -c program.c > program.lst

any compiler outputs in asm. Then the linker converts it to machine code. (executable in win)
for your compiler, you just need to put in the correct commandline switch. If in an IDE, then look at the compiler settings.

Red
 

ALL THE COMPILERS DO THAT by definition. the specific compiler may vary depending on the target device... say, for example, asm51 compiles the code for 8051 microcontroller..
 

ALL THE COMPILERS DO THAT by definition. the specific compiler may vary depending on the target device... say, for example, asm51 compiles the code for 8051 microcontroller..

True, but..... they may not produce the intermediate files (.lst, or .asm). They may create them as temp files, then delete them. You have to look at the compiler manual to find out how to produce the intermediate files and how to format them.

Red
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top