create a compiler

Started by
20 comments, last by citizen3019 20 years, 6 months ago
Good day, Was wondering if someone might direct me toward a comprehensive forum, site, etc. that dealt with creating compilers. Not Visual C/C++ caliber but something simpler with which an at-home coder might have fun playing around? Thanks, c3019
Advertisement
Why not do a scripting language with a virtual machine? You won''t have to kill yourself learning assembly hehe

No problem with the asm.

But seriously, I can''t seem to find a good place to start.
Any help?

Thanks,
-c3019
A good place to start is the Dragon book.

How appropriate. You fight like a cow.
Thanks for the tipoff.
But is there anything else that doesn''t cost $70 used?

Thnx anyway,
-c3019
The magic of google produces Let''s Build a Compiler.
CoV
quote:Original post by citizen3019
Thanks for the tipoff.
But is there anything else that doesn''t cost $70 used?

Thnx anyway,
-c3019


Abebooks.com has it for $30 (according to pricegrabber). This book is considered a classic intodructory text to this subject, so it would probably be worth your money.
Syntax without semantics is meaningless.
Yes, Let''s build a compiler!

Thank You, I''m gonna go that read now.
-c3019
I might be wrong but I believe there is a compiler (compiles to MSIL not ASM) in Microsofts SSCLI (aka Rotor) package. Search their MSDN site for it, it includes source code for a sample .Net CLR, many many tools, and I believe at least 1 compiler.
Maega wrote "Why not do a scripting language with a virtual machine? You won''t have to kill yourself learning assembly hehe "

Why would you need to know assembly to write a compiler?

This topic is closed to new replies.

Advertisement