Compiler construction was probably my favorite class. We did a pascal compiler on Solaris. I let my partners handle most of the assembly language research, but still ended up doing a large part of it ...
Have you ever thought of how tools like Checkstyle or FindBugs perform a static code analysis, or how Integrated Development Environments (IDEs) like NetBeans or Eclipse execute quick code fixes or ...