Home > Archive > Compilers > March 2004 > Online tutorials/explanations on code generation?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Online tutorials/explanations on code generation?
|
|
| Andreas Koch 2004-03-27, 12:29 am |
| Hi all,
I allready wrote several (small) interpreters, VMs, and
coded in assembly for several CPUs.
Next thing I'd like to try, is writing an compiler.
Of course I could build something that somehow outputs
assembly. But i'd like to have a quick overview of whats
the "usual" method of doing this elegantly, and retargetable.
(and I'd like to avoid browsing through such a beast as the
GCC sources for that, or buying a book)
So, can someone recommend a free site that highlights what
happens between "fully parsed code" and "assembly output" -
How opcodes, registers, addressing modes etc. are choosen.
thanks a lot,
--
Andreas
[What ever happened to the quaint practice of checking books out of
the library? -John]
| |
| c0d1f1ed 2004-03-27, 12:29 am |
| Hi Andreas,
You might be interested in my SoftWire run-time code generator
(softwire.sourceforge.net). The current version is quite advanced and
includes lots of complex optimizations, so if you want to understand
the basics I suggest to download the oldest version
(http://sourceforge.net/project/show...elease_id=94232).
It currently doesn't do linking though...
Like John said, you might want to look in your local library. Many
libraries in universities also let you read some books so you can
study it and make notes.
Good luck!
|
|
|
|
|