Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Compiling the Program

Save the code from the previous chapter into a file named hello.ft. ft is the file extension for Flint source files. They only contain code in written form. Its then the resposibility of the Flint compiler to take a file containing its source code and creating an executable from it.

To compile the .ft file to an executable file, we call

flintc --file hello.ft --out hello

This will output the executable in the current working directory. It can be exexuted with the command

./hello

And now you should see the output of the previous chapter in the console!