Options

-b

Build an executable file.

On Linux, require g++ or clang++ and source code to compile executable file.

-c

Compile to bytecode. This option will produce a file with .aupc extension, which contains bytecode and metadata.

-d

Dump generated code.

@main()
; k0 = 3
  000000  LDF    r1, [0]
  000001  BOOL   r2, [true]
  000002  JZ     [L5], r2
  000003  LDK    r2, k0
  000004  PRI    r2, [1]
  000005  RET

-g

Enable debug mode.

Debug mode helps you debug your code easily, but it makes program run slowly.

-h

Show help.

-O

Enable code optimization. Currently, support:

  • Constant folding/SSA

  • Smart register allocation

If debug mode is enabled, optimization is ignored.

Optimization means program in release mode, so you cannot debug it.

-v

Show version and build date.

Last updated