Compiler stages

With the --stats flag you get the stages information in a list view so it doesn’t run away under your eyes because the compiler blasts through most of them quickly.

The codegen phase consists of three stages:

  • crystal: the compiler builds the LLVM IR
  • bc+obj: LLVM compiles the IR into byte/object code
  • linking: the linker links the generated code with libraries into the final executable
5 Likes