Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 7th May 2007, 05:14 AM   (permalink)
Default Help!!!!

Is there any software that converts a C language code into assembly language for 8051 microcontroller??
Gaurav Varshney is offline   Reply With Quote
Old 7th May 2007, 01:30 PM   (permalink)
Default

Quote:
Originally Posted by Gaurav Varshney
Is there any software that converts a C language code into assembly language for 8051 microcontroller??
Is not that the purpose and function of a C compiler? I wouldn't think there would be anything else that re-invents that wheel without being a compiler.


Lefty
Leftyretro is offline   Reply With Quote
Old 7th May 2007, 01:45 PM   (permalink)
Default

Posts with meaningless heading like 'Help' tend to get ignored. Everyone here is to either help or to seek help. How is your post different ???

Change the topic to something less rude and more meaningfull and rephrase the question to

'Is there a C compiler for the Intel 8051 microcontroler ?'

Having said that, I would suggest that you do a google search for '8051 C compiler'. I found atleast SDCC and Crossware.
__________________
Its not the Practice that makes a man perfect. Its the Man who makes the practice perfect
----- Pradeep K. Shima -----
pkshima is offline   Reply With Quote
Old 7th May 2007, 02:19 PM   (permalink)
Default

Hi,
I think what you are asking, is there a utility program that you input a program written a C language [text]
and it gives you an output file in Assembler language [text].

Am I hitting the 'can'?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now   Reply With Quote
Old 7th May 2007, 02:42 PM   (permalink)
Default

Most C compilers I've seen (for PICs at least) will generate an assembly language file as an intermediate output, in addition to generating a HEX file.

These machine-generated assembly files tend to be pretty hard to follow, though not as bad if the C code is retained as comments.

But, I don't see much reason to care about the intermediate assembly code, except for some basic debugging if you don't trust the compiler, or if you need to write something in assembly language but never took the time to learn how to do it yourself - such as for school work?
Given the wording of the original post, I am guessing it's more likely the latter.
__________________
EEgeek.net
evandude is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 08:19 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.