AutoIt+
  • Overview
  • Getting started
  • The language
    • Basic
    • Grammar
      • Expressions
      • Statements
      • Declarations
    • Operators
    • Variables
    • Types & values
      • Null
      • Booleans
      • Numbers
      • Strings
      • Functions
      • Classes
      • Pointers
    • Control flow
      • If statement
      • For loop
      • While loop
      • Break & continue
      • Error handling
    • Collections
      • Array
        • APIs
        • Implementation
      • Map
        • APIs
        • Implementation
    • Modules
    • Exceptions
  • Built-in modules
    • C
      • APIs
      • Constants
    • Math
      • APIs
      • Constants
    • Task
      • Types
      • APIs
    • Global
  • The aup
    • Compiler
    • Runtime
    • Options
Powered by GitBook
On this page
  • -b
  • -c
  • -d
  • -g
  • -h
  • -O
  • -v

Was this helpful?

  1. The aup

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.

PreviousRuntime

Last updated 4 years ago

Was this helpful?