05-14-2007, 08:19 PM
Until the fall, anyway...
After taking one fairly easy exam, writing two papers, taking an impossibly hard exam, and finishing a large project, I'm finally done with the semester!
I got a 63 on the hard exam, but that's ok, because a 65 and over is an A. Good thing there's a curve...
The large project was for my Compiler Design class, and I had to work on it throughout the semester, doing one of the 4 major parts every few weeks. I had to write a compiler for a subset of Pascal into an assembly-like subset of C. Code that looks like
rectab[1].table[-1] := 42;
rectab[0] := rectab[1];
gets compiled to
I wrote the compiler in c++, and it's about 6500 lines including whitespace, by far the biggest project I've ever done.
I have a few goals for the summer.
Anyway, I'm just glad to be done after studying and working almost constantly for the last couple weeks. ^_^
After taking one fairly easy exam, writing two papers, taking an impossibly hard exam, and finishing a large project, I'm finally done with the semester!
I got a 63 on the hard exam, but that's ok, because a 65 and over is an A. Good thing there's a curve...
The large project was for my Compiler Design class, and I had to work on it throughout the semester, doing one of the 4 major parts every few weeks. I had to write a compiler for a subset of Pascal into an assembly-like subset of C. Code that looks like
rectab[1].table[-1] := 42;
rectab[0] := rectab[1];
gets compiled to
_var[70] = 42;
_temp[0] = 55;
_temp[1] = 55 + 11;
_temp[2] = 67;
label0: _temp[3] = _temp[0] > _temp[1];
if(_temp[3]) goto label1;
_var[_temp[0]] = _var[_temp[2]];
_temp[0] = _temp[0] + 1;
_temp[2] = _temp[2] + 1;
goto label0;
label1: ;
_temp[0] = 55;
_temp[1] = 55 + 11;
_temp[2] = 67;
label0: _temp[3] = _temp[0] > _temp[1];
if(_temp[3]) goto label1;
_var[_temp[0]] = _var[_temp[2]];
_temp[0] = _temp[0] + 1;
_temp[2] = _temp[2] + 1;
goto label0;
label1: ;
I wrote the compiler in c++, and it's about 6500 lines including whitespace, by far the biggest project I've ever done.
I have a few goals for the summer.
- Watch Star Wars (I must be the only one at my college who hasn't seen it...)
- Learn Perl
- Update my IRPG calculator
- Get and play Pokemon
PerlPearl - Read Alice's Adventures in Wonderland and Through the Looking-Glass (supposedly interesting reads for computer scientists and other logic-y people. I remember seeing a couple quotes from Through the Looking-Glass in the beginning of chapters of my discrete math textbook.)
Anyway, I'm just glad to be done after studying and working almost constantly for the last couple weeks. ^_^






*slaps self* No, I'm not hallucinating...