Sunday, July 12, 2009

How can i convert a program designed in C language into an equivalent 8085 assembly language?

I know c language by heart and have done projects related to software and hardware interactions, i have also studied 8085 assembly language in my graduation... So what i like to design some projects on hardware and software interactions on 8085 microprocessor assembly language.


So my question to everybody out there is that is there any way or software that can convert program written in Clanguage into an equivalent 8085 microprocessor assembly language. could someone guide me through this question...

How can i convert a program designed in C language into an equivalent 8085 assembly language?
The clear answer is that you need an 8085 C compiler. Googling for "8085 C Compiler" turns up several hits.
Reply:yeah ,... you have to search for an emulator that does that ...
Reply:You probably want to get gcc.





Compile the "C" using gcc -S which will create assembly language code.





You will have to tailor gcc so that it produces 8085 code. That process cannot be explained in this small area. Go to the gcc site and look at the mechanisms for having gcc cross compile.





http://gcc.gnu.org/install/configure.htm...





I cannot guarantee that gcc will cross compile to 8085. I also cannot guarantee that your processor will execute 8085 code. I think the intel machines are downward compatible but you would need to check.


No comments:

Post a Comment