Optimization

Started by
0 comments, last by Sneftel 17 years, 2 months ago
I am currently writing a compiler from a custom language to C. I have access to large amounts of high-level information, and I would like to use it to optimize the generated code (by removing redundant checks, branches and fields, while keeping relevant ones, for instance). I'm willing and eager to let the C compiler do the low-level optimization for me. Do you have pointers to any resources about this type of optimization? Or perhaps words of wisdom from your own experience in this field?
Advertisement
You might want to consider writing a GCC front-end instead of compiling to C. I hear it's actually pretty easy, and you'll get the full weight of GCC's optimization power.

This topic is closed to new replies.

Advertisement