Full control over compilation and code generation through powerful terminal commands
AsmX G3 provides advanced command line options for full control over compilation
Support for many options to customize the compilation process for your needs.
Get all the information you need about the compiler and its environment.
Tools for performance analysis and keeping the compiler up to date.
Typical scenarios for working with the compiler via the command line.
# Compile compile.asmx file to a native executable for x86_64
asmx compile.asmx --release --march x86_64 -o my_program
# Run the generated ELF file
./my_program
# JIT-execute a file for quick testing
asmx factorial.asmx
# Get compiler version info
asmx --version
# Update the compiler to the latest version
asmx --update
@include libc;
@section rodata {
message: str("Hello World!\n")
}
@fn pub main {
@mov $1, %rax
@mov $1, %rdi
@mov &message, %rsi
@mov $21, %rdx
@syscall
@mov $60, %rax
@mov $0, %rdi
@syscall
}
Full list of commands and options for the AsmX G3 compiler
Get started with AsmX G3 in just a few steps
AsmX G3 requires Node.js version 16 or higher to work
Install the compiler via npm (Node.js package manager)
Or build from source:
Make sure the compiler is installed correctly