r/computerscience • u/sarnobat • Apr 25 '25
Discussion (Why) are compilers course practicums especially difficult?
In more than one (good) academic institution I've taken a compilers course at, students or professors have said "this course is hard," and they're not wrong.
I have no doubt it's one of the best skills you can acquire in your career. I just wonder if they are inherently more difficult than other practicums (e.g. databases, operating systems, networks).
Are there specific hurdles when constructing a compiler that transcends circumstantial factors like the institution, professor that are less of a problem with other areas of computer science?
View all comments
Show parent comment
2
u/ChrisWsrn Apr 29 '25
It was a very fun class. The problem was it was a insanely hard class. At the time it was considered the hardest systems elective.
We did use pintos as a base but it only had the boot loader and the C library as the starting point. Once the kernel was loaded into memory we had to take over or it would halt. We had to implement threading and the scheduler as the first project.
We did have a lab where we walked through the boot sequence that we were given as a starting point. The reason we did not build this part from scratch was because it had a lot of vodo because of quirks of the 8086.