PBXB64 V23 detail

In 3 Minuten starten - PBXB64 V23

PBXB64-V23-Einstiegsbeispiel, Kommandozeile und historische Ausgabe. Der vollständige Quelltext, die Ausgabe und der historische Zeitvermerk wurden aus der Übersicht hierher verschoben; diese Seite fügt keine neue Compiler- oder Funktionsprüfung hinzu.

Zur PBXB64-ÜbersichtEnglish
Der Einlass

In 3 Minuten starten

  1. PBX-Basic_10.zip herunterladen und entpacken.
  2. Beispiel 1 unten als hello.bas speichern.
  3. PBXB64.exe hello.bas -o hello.exe ausführen, danach hello.exe.

Systemvoraussetzungen: Windows 10 64 Bit oder neuer, etwa 50 MB Plattenplatz (laut README im Paket).

Beispiel 1: Hallo, 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

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

Ausgabe (geprüft)
Hello from PBXB64 - native 64-bit code!
SIZEOF(LONG)    = 8
SIZEOF(INTEGER) = 2
SIZEOF(QUAD)    = 8
SIZEOF(pointer) = 8

Ein vollständiges Programm. LONG hat 64 Bit, INTEGER seit V23 16 Bit, Zeiger sind 8 Bytes groß.

Geprüft mit PBXB64 V23 (05.10.2026): übersetzt und ausgeführt, EXE mit 76.800 Byte, 410 ms Übersetzen und Linken.

Kommandozeilen-Spickzettel

Alle Optionen mit V23 getestet
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 (Header eingebaut)
PBXB64.exe --version | --print-capabilities=json

Die eine Compiler-Datei genügt, für BASIC wie für C17: Die C17-Header sind eingebaut.

PBXB64 ist Teil des PBX-Compiler-Pakets. Private Nutzung kostenlos, Business sauber lizenziert.