⚙️Compiler
A tool that turns all your code into one file you can run.
Think of it like
Think of it like turning a whole book into French first. Then French readers get the done copy.
Example
Jack compiles a C file of 5 lines. Out comes a program file of about 16,000 bytes that runs with no compiler around.
Why it matters
Compiled programs start fast and run fast. Many mistakes are caught before anyone runs the code.
Definition
Example code
console
$ gcc hi.c -o hi
$ ./hi
HiCommon mistake
Key takeaways
- 1Whole program first. It reads everything before making output.
- 2New file out. The result runs without the source.
- 3Errors up front. Grammar slips stop the build.