Command:
nasm -felf64 <file> -o <output.o>Example:
fz -asm hello.asmCommand:
gcc -c <file> -o <output.o>Example:
fz -asm hello.sCommand:
fasm <file> <output.o>ForgeZero can inject format ELF64 executable automatically when no format directive exists.
Zig bundles libc and sysroots for supported targets, allowing cross-compilation without installing a prefixed toolchain.
fz -cc main.c -zig
fz -dir ./src -zig
fz -cc main.c -zig -target aarch64-linux-musl- Default:
gcc/clang,g++/clang++, Objective-C viaclang - With
-zig:zig cc/zig c++(and Obj-C viazig cc)
Examples (package managers may vary):
- Debian/Ubuntu: download and extract Zig, then add to
PATH - Arch/macOS: use
pacman/brew
- Automatic ELF64
formatinjection for.fasmif omitted - When
-debugis active, extra-dDEBUG=1is passed to FASM