Home Explore Blog CI



rustc

src/part-3-intro.md
80519800a16ccd3da3832632e42fd24b0e5dd6995e89a69b0000000300000209
# Source Code Representation

This part describes the process of taking raw source code from the user and
transforming it into various forms that the compiler can work with easily.
These are called _intermediate representations (IRs)_.

This process starts with compiler understanding what the user has asked for:
parsing the command line arguments given and determining what it is to compile.
After that, the compiler transforms the user input into a series of IRs that
look progressively less like what the user wrote.

Chunks
c17c3c9d (1st chunk of `src/part-3-intro.md`)
Title: Source Code Representation and Intermediate Representations (IRs)
Summary
This section outlines how the compiler transforms raw source code into intermediate representations (IRs) that are easier to work with. The process begins with parsing command-line arguments to understand the user's intentions and then converting the input into a series of IRs that become increasingly abstract from the original source code.