© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
11 replies
Ezlanding

❔ Optimize Compiler Code Generation

I am writing a compiler and I am almost done with all the base syntax/functionality, and am up to optimization.
Right now, the compiler isn’t optimized at all. No constant folding, no function inlining, and dead code is still emitted
Where can I learn about the optimization steps above and other optimizations for my compiler’s code generation? How helpful is the Dragon Book? (I already have the book, but am not up to a point where it talked about optimization yet). Any good articles/videos/resources?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Optimize graph generation for 2D grid
C#CC# / help
12mo ago
✅ How to optimize this code?
C#CC# / help
16mo ago
✅ OneOf library code generation not working?
C#CC# / help
8mo ago
Avalonia UI: Issue with code generation
C#CC# / help
3y ago