Asking a computer programmer to tell you how to write a compiler is like saying to Picasso, "Teach me to paint like you."
*Sigh* Nevertheless, Picasso shall try. The following five books must be in your collection if you want to know anything about compilers; they cover background, design, writing, step-by-step tutorials and examples, and linkers and loaders, respectively. Programming Language Pragmatics (US$73.95) by Michael L. Scott ; Hardcover http://www.amazon.com/exec/obidos/ASIN/1558604421/ Modern Compiler Design (US$60.00) by D. Grune, et al ; Paperback http://www.amazon.com/exec/obidos/ASIN/0471976970/ Writing Compilers and Interpreters (US$45.49) by Ronald Mak ; Paperback http://www.amazon.com/exec/obidos/ASIN/0471113530/ Building Your Own Compiler With C++ (US$25.00) by Jim Holmes ; Textbook Binding http://www.amazon.com/exec/obidos/ASIN/0131821067/ Linkers and Loaders (US$38.95) by John R. Levine ; Paperback http://www.amazon.com/exec/obidos/ASIN/1558604960/ The following three books must be in your collection if you want to do a kick-@$$ job on your compiler. If the compiler is simply for educational purposes or just for something to mess around with, you may skip these books. Otherwise, especially if the compiler will be used in a commercial environment with critical programs, these books must also be in your collection. Advanced Compiler Design and Implementation (US$93.00) by Steven S. Muchnick ; Hardcover http://www.amazon.com/exec/obidos/ASIN/1558603204/ Optimizing Compilers for Modern Architectures: A Dependence-based Approach (US$79.95) by Randy Allen, Ken Kennedy ; Hardcover http://www.amazon.com/exec/obidos/ASIN/1558602860/ High Performance Compilers for Parallel Computing (US$50.33) by Michael Joseph Wolfe, et al ; Hardcover http://www.amazon.com/exec/obidos/ASIN/0805327304/ Believe me when I say that you cannot find this information on a website. Swallow hard and cough up the cash for the books. (US$466.67 Total) Keep in mind, the compiler is the program from which all other programs arise. If your compiler is crappy, all programs created by the compiler will also be crappy. All this, of course, assumes that you already have a deep grasp and understanding of several programming languages, C/C++ being one of them, along with a general understanding of computer architecture and Assembly. Joseph Wagner -----Original Message----- From: Shyam Kumar Mankayil [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 12, 2002 11:01 PM To: [EMAIL PROTECTED] Subject: Where to start -- I want to design a compiler Assuming that I wish to make a compiler that compiles a given language into Machine Language (specific to AMD-Duron) , where do I start from , and what do I need to know ? Thanks, Shyam Do You Yahoo!? Get personalised at My Yahoo!. _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list