lakshman
lakshman

Reputation: 2741

simple compiler for optimization purposes

I want a source code of a simple compiler to optimize by interchanging the code for delayed branches for my assignment.

I read the is there a simple compiler for a small language question and found several good compilers.

But optimization has done for almost all of them and some links are dead. Can someone recommend me a simple compiler for a small language that is not implemented optimization for delayed branches.

Upvotes: 2

Views: 283

Answers (1)

Sammy Mitchell
Sammy Mitchell

Reputation: 398

You might try: cucu: a compiler you can understand

It is a simple C compiler, less than 700 lines of code. I found it well written and easy to follow.

Upvotes: 5

Related Questions