PBXB64 V21

PBXB64 V21 is a native Windows x64 toolchain with ten language frontends, EVAL, StringX and REGEX workflows, expanded bounded COBOL and FORTH subsets, detailed online feature documentation, and PBXB64 V21 within the V7 distribution.

The full reference help (CHM, EN+DE+ES+FR) ships in the download package — these feature pages replace the online help.

PBXB64 Additions vs. Original PB

PBXB64 retains PowerBASIC-style development while adding a unified native pipeline for B64, C, ASM, COBOL, FORTH, Logo, PILOT, Rust, and SPR. V21 adds runtime expression evaluation, broader StringX and REGEX workflows, expanded bounded COBOL and FORTH subsets, and stronger selected runtime/H-Lib interoperability.

AreaOriginal PBPBXB64 V21
LanguagesPowerBASIC onlyPB/BASIC + B64 + C + ASM + COBOL + FORTH + Logo + PILOT + Rust + SPR NEW
BackendProprietaryCustom x64 IR + optimizer + assembler + linker NEW
DependenciesExternal toolsZero external dependencies NEW
ContainersNone22 native core families plus the Safe synchronized wrapper V15
Science typesNoneDEC128 (18-digit decimal), RATIONAL (exact arithmetic) NEW
RegexNoneBuilt-in REGEXPR 1.25 engine, captures, backreferences, and replacement V15
GUID/COMNoneGUID$(), CLSIDFROMPROGID$(), PROGIDFROMCLSID$() NEW
Wide integers64-bit max128 / 256 / 512-bit inline arithmetic NEW
GraphicsClassic PB graphicsLogo and BASIC turtle graphics NEW
Embedded automationNoneEmbedded SPR with !! and VIP. NEW
Digital signingNoneV8: PBXB64.exe digitally signed, plus SHA-256 checksums NEW
SigningNoneBuilt-in PE Authenticode signing NEW
Additional dialects and targeted customization

X-Code, #OVERRIDE & Preprocessor

X-Code

Separate typed assembler dialect: virtual registers, X. commands, register allocation and APX modes. #XCODE … #ENDX accesses BASIC variables and bridge-imported storage. Additional to nine language inputs plus ASM; not another standalone file frontend.

View examples and details

#OVERRIDE

Replace registered BASIC runtime functions with typed custom implementations. ABS(2)=42 example verified with V21. Distinct from the OVERRIDE method keyword and macro text substitution.

View syntax and example

BASIC preprocessor

#INCLUDE, #DEFINE, conditional #IF branches and #REPEAT before compilation. A small V21 example checks their combined effect against result 42.

View checked example

Targeted V21 evidence from 2026-09-30; native APX encoding checked separately, APX hardware execution not confirmed. The detail page explains a known emulation limitation.

Language Features and the V21 Package

PowerBASIC gains EVAL()/EVAL$(), expanded number and string conversion, practical StringX helpers, and updated REGEXPR access. The bounded COBOL frontend covers more linkage, arithmetic, OCCURS, STRING and UNSTRING scenarios; the tested native FORTH subset adds CATCH, THROW, EXECUTE, dictionary, memory, and mathematical words.

PowerBASIC - expressions and REGEX
value = EVAL("(10 - 4) * 2") text$ = BUILD$("value=", EVAL$("1 + 2")) item$ = REGEX$("([A-Z]+)-(\d+)", "ITEM-42", 2)
StringX - wildcard and replacement
IF LIKE$("Report-2026", "report-*") <> "" THEN PRINT REPLACES$("alpha-beta", "-", " ") END IF
COBOL - linkage subset
LINKAGE SECTION. 01 BUF PIC X(20). PROCEDURE DIVISION USING BUF. MOVE "from COBOL" TO BUF.
FORTH - exception handling
: may-fail 1 THROW ; ['] may-fail CATCH . CR

Feature Categories

Architecture

Ten language frontends, unified IR, custom x64 backend, built-in assembler, COFF writer, and PE32+ linker.

8 features
Explore →

Data Types

Standard PB types plus the complete UN family, native H-Lib data structures, DEC128, RATIONAL, COM types, and wide integers.

V15 expanded
Explore →

Control Flow

IF, SELECT CASE, FOR/NEXT (all types, negative STEP), WHILE, DO, GOSUB/RETURN, GOTO, ON GOTO, WITH, EXIT.

12 features
Explore →

H-Lib Containers

22 native core families plus Safe, with auto-init/final, method dispatch, subscripts, UDT payloads, BYVAL/BYREF, and SortUsing callbacks.

22 families
Explore →

Science & Math

DEC128, RATIONAL, REGEXPR, GUID, wide integers, hyperbolic trig, ATN2, HYPOT, the complete UN family, MAT, and LINALG.

12 features
Explore →

String Functions

REGEXPR 1.25 with REGEXPR, REGREPL, REGEX$, REGEXREPLACE$, captures, backreferences, binary-safe targets, plus ANSI and WSTRING operations.

Built-in REGEX engine
Explore →

Networking

TCP OPEN/CLOSE/SEND/RECV/LISTEN/ACCEPT, UDP, HOST ADDR/NAME, COMM serial ports. Real Win32 socket API.

6 features
Explore →

Graphics & GUI

GRAPHIC WINDOW, LINE, BOX, CIRCLE, GUI NEW, DIALOG, CONTROL, DISPLAY, FONT, MENU. Real GDI/GDI+.

14 features
Explore →

OOP & Classes

CLASS, INTERFACE, METHOD, PROPERTY, EVENTS FROM/END, RAISEEVENT, IMPLEMENTS, WITH. Full vtable dispatch.

8 features
Explore →

COM & Automation

VARIANT, OBJECT, GUID, CreateObject, IDispatch automation. Type-safe with automatic reference counting.

5 features
Explore →

Registry & System

REGISTER KEY/SET/GET/CLOSE/DELETE, COMM OPEN/CLOSE/SET/SEND/RECV, PROCESS PRIORITY, MOUSEPTR.

8 features
Explore →

Dialogs & Controls

DIALOG SHOW MODAL/END, CONTROL ADD, DISPLAY BROWSE/COLOR/FONT/OPENFILE/SAVEFILE, MENU, ACCEL.

10 features
Explore →

Clipboard & Shell

Clipboard GetText/SetText/Clear, SHELL, ENVIRON, COMMAND. Real Win32 clipboard API with atomic tests.

5 features
Explore →

Resource Compiler

#RESOURCE directive, .rc to .res pipeline, windres integration. Icons, dialogs, string tables, version info.

4 features
Explore →

V21 Language Frontends

Expanded bounded COBOL and FORTH subsets build on the ten-frontend pipeline, Logo/BASIC turtle graphics, embedded SPR, and typed frontend bridges.

V21 overview →

File I/O

OPEN, CLOSE, PRINT#, LINE INPUT#, binary access, and runtime file behavior.

Explore →

Threading

Thread creation, synchronization-oriented helpers, and concurrent runtime surfaces.

Explore →

C17 Frontend

Focused C modules compiled through the PBXB64 x64 backend.

Explore →

PILOT Language

Compact teaching and automation language support in the PBXB64 toolchain.

Explore →

V21 Release Scope

The V7 package contains PBXB64 0.50.0-V21, 218 canonical C17 headers, four reference CHMs (DE, EN, ES, FR), HelpSamples.chm and 6,321 sample source files. V21 specifically corrects the stale stdarg.h packaging; its release notes identify the compiler as unsigned.

10Language and Assembler Areas
6,321Sample Source Files
4 + 1Reference and Sample Helps
218C17 Headers