Compiler

[ Back ]

The standard extension for naalaa source code files is .nala or .txt.

From the NaaLaa Editor you compile a program by pressing F7, execute a compiled program with F6 or compile and execute with F5. You can also press F8 to compile to a library instead of an executable. If you're using the compiler from a terminal or another editor the parameters are:

naalaa6 filename [L]

, where filename is the name of the source code file. If the L parameter is present, the source code will be compiled to a library with the same filename but with the extension .lib. Else two files will be created. The file with the same name but without any extension is the executable file. The file with the same name but with the extension .sbe can normaly be deleted and does NOT need to be distributed with your program. An sbe file contains pure NaaLaa bytecode, and you can execute an sbe file from a running NaaLaa program with the run command.

Click here for more information about libraries.
Click here for more information about sbe files.

[ Back ]