PBXB64 V23 detail

Get started in 3 minutes - PBXB64 V23

PBXB64 V23 getting-started example, command line and historical output. The complete source, output and historical timing note moved here from the overview; no new compiler or functional test claim is added.

Back to PBXB64 overviewDeutsch
The intake

Get started in 3 minutes

  1. Download PBX-Basic_10.zip and unpack it.
  2. Save sample 1 below as hello.bas.
  3. Run PBXB64.exe hello.bas -o hello.exe, then hello.exe.

System requirements: Windows 10 64-bit or newer, about 50 MB disk space (documented in the package README).

Sample 1: Hello, 64-bit

01_hello.bas
#COMPILE EXE
#DIM ALL

FUNCTION PBMAIN() AS LONG
    LOCAL p AS BYTE PTR
    PRINT "Hello from PBXB64 - native 64-bit code!"
    PRINT "SIZEOF(LONG)    ="; SIZEOF(LONG)       ' 8: LONG is 64-bit in PBXB64
    PRINT "SIZEOF(INTEGER) ="; SIZEOF(INTEGER)    ' 2: 16-bit since V23
    PRINT "SIZEOF(QUAD)    ="; SIZEOF(QUAD)       ' 8
    PRINT "SIZEOF(pointer) ="; SIZEOF(p)          ' 8
    FUNCTION = 0
END FUNCTION

Build: PBXB64.exe 01_hello.bas -o 01_hello.exe

Output (verified)
Hello from PBXB64 - native 64-bit code!
SIZEOF(LONG)    = 8
SIZEOF(INTEGER) = 2
SIZEOF(QUAD)    = 8
SIZEOF(pointer) = 8

A complete program. LONG is 64-bit, INTEGER is 16-bit since V23, pointers are 8 bytes.

Verified with PBXB64 V23 (2026-10-05): compiled and run, 76,800-byte EXE, 410 ms compile and link.

Command line cheat sheet

All options tested with V23
PBXB64.exe src.bas -o out.exe                    compile to console EXE (default)
PBXB64.exe src.bas -o out.exe --gui              GUI subsystem (or #CONSOLE OFF in source)
PBXB64.exe src.bas -S                            write assembly listing
PBXB64.exe src.bas -c                            write object file only
PBXB64.exe src.bas -g --pdb out.pdb -o out.exe   debug info (path is required)
PBXB64.exe -I Includes src.bas -o out.exe        add include folder
PBXB64.exe main.bas helper.c -o out.exe          mix BASIC and C in one build
PBXB64.exe app.rc main.bas -o out.exe            compile and embed resources
PBXB64.exe -std=c17 prog.c -o prog.exe           C17 (headers built in)
PBXB64.exe --version | --print-capabilities=json

One compiler file is enough, for BASIC and for C17: the C17 headers are built in.

PBXB64 is part of the PBX-Compiler package. Free for private use, cleanly licensed for business.