5 ms·
Making my first toy language is one of the most interesting advertures as a programmer. LLVM is quite complex and the documentation is far from stellar but it's
by program 14y ago
Making my first toy language is one of the most interesting advertures as a programmer. LLVM is quite complex and the documentation is far from stellar but it's usable for teaching how a compiler works.
Also I like the restyling. LLVM landing page is so 90'.
- adamnemecek 14y agoBuilt with HTML tables too!
- mercurial 14y agoLooks like it's done with sphinx, which is wonderful for this sort of thing.
- pjmlp 14y agoOne thing you might find interesting is to generate some kind of bytecode as textual representation. Then write Assembly macros that translate those bytecode into real Assembly code. This will give you a nice picture without much effort how code generation can be done. Surely the performance won't be stellar, but is a nice experience. On the other hand you can plug it directly into LLVM, but there you get more things to learn at the same time, which might slow you down.