Re:If I ever design a first course in compilers, I'll do it ...
by rayiner on Thursday August 07, 2014 @12:20PM
(#8148530)
At least at GT 10 years ago, a machine architecture course (starting with logic gates, moving on to MIPS assembly, then CPU architecture) was pretty early in the CS curriculum. Seems pretty essential, is it not common?
Re:If I ever design a first course in compilers, I'll do it ...
by nesyt on Thursday August 07, 2014 @12:37PM
(#8148650)
At Utah (graduated three months ago) we were required to take one class that used MIPS and another class that used x86 (the compilers class was optional). They were great, and I agree seem pretty essential.
Ideally I would want to teach a two semester course starting with the backend first -- the first task would be to write several significant programs in assembly language (for some clean RISC machine) and grade them on how well they managed register allocation, stack frame / heap management, page alignment, etc.. Then cover how to convert some SSA IR (e.g., LLVM) into that language.
How do you translate into a language you don't understand?