Compiler/Assembler lavrc
The compiler/assembler „lavrc“ is a command line program. The program includes the Luna-compiler lavrc and the Luna-assembler lavra. The Luna-assembler assembles the compiled code including inline-assembler of the Luna source code. The names of the executable for different operating systems are:
Operation System | Filename |
---|---|
Windows | lavrc.exe |
Linux | lavrc |
Command line parameters and options
- -i dir - add the directory 'dir' as include-path.
- -v - enables the text output (verbosity).
- -c - Check syntax only (Parser), no assembling.
- -z[switch] - Assembler code-optimizations:
- 0 - disabled
- 1 - enabled (default)
- -o[type] - Output options of the compiler:
- b - write binaery file (*.bin)
- e - write binaery eeprom file (*.eep)
- h - write intel hex file (*.hex)
- y - write precode of the precompiler (*.zc)
- z - write precode of the preassembler (*.za)
- a - write assembler output (*.s)
- s - write assembler output, incl. library code (*.s)
- r - write report file (*.rpt)
- -w[level] - Warning level:
- 0 - Disable warnings.
- 1 - Only memory space warnings
- 2 - All warnings (default)
- -k - export Luna-keywords to 'keywords.txt'
- -h - This help.
Example Call
Windows
c:\lunaavr\lavrc.exe -v -ohbera -w1 "C:\Projekte\helloworld.luna"
Linux
/home/user/lunaavr/lavrc -v -ohbera -w1 "/home/user/projekte/helloworld.luna"