From Gentoo Wiki
Jump to:navigation Jump to:search
Everyone is allowed to edit this page and its subpages, because C++ is way too hard to understand. However, there is this link which explains how GCC internally transform a programming language to an executable.

Hello, this is the documentation to code a frontend for GCC. Why write a frontend for GCC when LLVM is designed for coding frontend with good documentation compared to this unofficial documentation? Because it stops coding a compiler from scratch, takes advantage of decades of middle end optimizations/instrumentation and many backends outputs, and the frontend won't be solely dependent on LLVM.

Table of contents

Hello world
Make the frontend say "Hello world!"