Ask the Expert

Advice on writing a cross-compiler in C for 8051 series of microcontrollers

I want to write a cross-compiler in C for 8051 series of microcontrollers. Could you please help me by offering me some guidelines and guidance? Information on related resources would be appreciated, too. Thanks.

    Requires Free Membership to View

Ah, the old Intel 8051. It was the first CPU I developed a debugger for and it brings back great memories. Writing a compiler for any CPU is similar to any other CPU. While I haven't written one, the two books I can highly recommend are "Compilers: Principles, Techniques and Tools" by Alfred V. Aho, Ravi Sethi and Jeffrey D. Ullman and "Compiler Design in C" by Allen Holub.

This was first published in August 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: