AsmX G3 - Breakthrough in compilation

New generation of assembly language with AT&T syntax support, JIT compilation and full ELF file generation for x86_64 systems

Powerful Possibilities

AsmX G3 Delivers Revolutionary Low-Level Programming Capabilities

AT&T Syntax

Full support for AT&T syntax with modern enhancements for ease of development

  • Advanced directive system
  • Macros and templates
  • Improved section handling

JIT Compilation

Instant in-memory compilation with the ability to run without creating files

  • Dynamic code generation
  • Hot reload support
  • Interactive debugging

ELF Generation

Full ELF file generation with dynamic library support

  • .text, .data, .rodata sections
  • Dynamic linking (libc)
  • Symbol and relocation tables

Advanced Compiler

Powerful compiler with support for modern features

  • Code optimizations
  • Detailed error messages
  • Flexible directive system

Integration with libc

Easy to include and use the standard C library

  • Automatic linking
  • System call support
  • Access to standard functions

High Performance

Generate optimized machine code for maximum speed

  • Low-level optimizations
  • Minimal overhead
  • Direct access to hardware resources

Example Code

Write your first AsmX G3 program in just a few minutes

hello.asmx
@include libc;

@section rodata {
  message: str("Hello World!\n"),
  archlinux: str("\uf303 -> Arch Linux\n")
}

@fn pub main {
  ;; Example of simple operations
  @mov $0, %rdi
  @add $10, %rdi
  @cmp $0, %rdi
  
  ;; Output the first message
  @mov $1, %rax        ;; sys_write
  @mov $1, %rdi        ;; stdout
  @mov &message, %rsi  ;; message pointer-address
  @mov $21, %rdx       ;; message length
  @syscall

  ;; Output the second message
  @mov $1, %rax
  @mov $1, %rdi
  @mov &archlinux, %rsi
  @mov $24, %rdx
  @syscall
  
  ;; Terminate the program
  @mov $60, %rax       ;; sys_exit
  @mov $0, %rdi        ;; exit code 0
  @syscall
}
$ asmx hello.asmx -r -m x86_64 -o hello
$ ./hello
Hello World!
οŒƒ -> Arch Linux

Installation AsmX G3

Get started with AsmX G3 in just a few steps

1

Install Node.js

AsmX G3 requires Node.js version 16 or higher to run

$ sudo apt install nodejs # For Debian/Ubuntu
$ brew install node # For macOS
2

Install AsmX G3

Install the compiler via npm (Node.js package manager)

$ npm install -g asmx-g3

Or build from source:

$ git clone https://github.com/AsmXFoundation/AsmX-G3.git
$ cd asmx-g3
$ npm install
$ npm link
3

Check your installation

Make sure the compiler is installed correctly

$ asmx --version
AsmX G3 (AsmX Generation 3)
Version: v28

Installing AsmX G3

Get started with AsmX G3 in just a few steps

Linux / macOS

$ npm install -g asmx-g3

Or build from source:

$ git clone https://github.com/AsmXFoundation/AsmX-G3.git
$ cd asmx-g3
$ npm install
$ npm link

Windows

> npm install -g asmx-g3

Requirements:

  • Node.js 16+
  • NPM (usually comes with Node.js)
  • Git (for building from source)

Full Documentation

Explore all the features of AsmX G3 with our detailed documentation

Language Syntax

A Complete Guide to AsmX G3 Syntax

  • Directives and Preprocessor
  • Data Type System
  • Sections and Memory
  • Functions and Procedures
Read

Command Line

All compiler and utility options

  • Compilation options
  • Optimization options
  • Generating debug information
  • Controlling output formats
Learn

Type System

Advanced AsmX G3 Type System

  • Basic Data Types
  • Structures and Unions
  • Pointers and References
  • User-Defined Types
Read more

Join the Community

Become part of the fast growing AsmX G3 community

GitHub

Π˜ΡΡ…ΠΎΠ΄Π½Ρ‹ΠΉ ΠΊΠΎΠ΄, Π±Π°Π³Ρ‚Ρ€Π΅ΠΊΠ΅Ρ€ ΠΈ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ внСсти свой Π²ΠΊΠ»Π°Π΄ Π² Ρ€Π°Π·Π²ΠΈΡ‚ΠΈΠ΅ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°

Visit GitHub

Discord Server

Join our Discord community for discussion, questions and help

Join

Project Examples

Explore the repository for example projects and templates

See examples