PBXA32 V24
V24 — in the V10 package
A complete x86-32 compiler pipeline written in ISO C11. From PowerBASIC source through preprocessor, lexer, parser, semantic analysis, IR, x86 code generation, COFF assembly, and PE32 linking — all in one toolchain. No C++ dependencies. No GNU extensions. Just pure standard C11 producing native Windows PE32 executables.
PBX-Compiler V10: about 355 MB. Includes PBXA32 V24, PBXA64 V10, PBXB64 V24, PBXC64 RC50, ScharffBasic and the PBX Editor with help, includes and examples.
Written in ISO C11 (no C++, no GNU)
Target: x86-32 / PE32
PBXA32.exe digitally signed
New in PBXA32 V24
Modules and classes
MODULE … END MODULE with INTERFACE/IMPLEMENTATION, USES, PRIVATE, EXPORT, initialization and finalization. Modules require --profile=pbx32; strict PBWIN remains the default. Classes support value instances, ME, methods and nested class fields.
Parsing and real PE resources
PARSE, PARSE$ and PARSECOUNT support ANY/BINARY. #RESOURCE creates an actual PE resource directory, including VERSIONINFO, ICON, BITMAP, MANIFEST, RCDATA and STRINGTABLE.
Declarations, optimization and interop
LOCAL/DIM/STATIC placement and frame hoisting, O2/O3 HIR operand ordering, typed POKE, SIZEOF/ALIGNOF/OFFSETOF and MEMCPY/MEMSET under DIM ALL. Import declarations handle optional parameters and BYVAL/BYREF/BYCOPY ASCIIZ contracts.
Preprocessor and practical limits
#IF constants, #SELECT, #ERROR/#WARN/#MESSAGE, source-position DEFINE/UNDEF semantics and include-once/cycle checks have been hardened. GLOBAL/STATIC initializers currently accept literal integers, optionally negative; other forms produce warning 3002 and zero initialization. A managed STRING local inside a block with early exit remains a known O2/O3 limitation: declare it at procedure entry.
Why PBXA32 Matters
Pure C11 Implementation
The entire compiler — lexer, parser, preprocessor, code generator, assembler, linker, and runtime — is written in standard ISO C11. No C++. No GNU extensions. Builds with any C11-compliant compiler including MinGW-w64, MSVC, and Clang.
Complete x86-32 Pipeline
The seven compiler stages form the native x86-32 pipeline. Tokenize PowerBASIC syntax, build an AST, lower to IR, generate x86 machine code, emit COFF objects, and link to PE32 — a full end-to-end compiler in C.
PowerBASIC Compatible
Supports directives (#COMPILE, #INCLUDE, #DIM), procedures (FUNCTION, SUB, CALLBACK), control flow (IF, SELECT, FOR, DO, WHILE), jumps (GOTO, GOSUB), aggregates (TYPE, UNION, ENUM), and classic type suffixes (% & && ! # $ @).
Per-Subsystem Smoke Tests
Every stage has its own dedicated smoke test. Test the lexer independently, then the parser, assembler, or linker. Isolate bugs to their layer without compiling full programs.
Quick Example
Implemented Subsystems
| Stage | Status | Description |
|---|---|---|
| Preprocessor | Implemented | Macro expansion, conditional compilation (#IF/#ENDIF), file includes |
| Lexer | Implemented | PowerBASIC-aware tokenizer with full numeric literal support |
| Parser | Implemented | Recursive-descent parser building full AST |
| Semantic | Implemented | Type system, symbols, analyzer |
| IR | Implemented | IR module and lowering |
| CodeGen | Implemented | IR-to-x86 machine code generator |
| Assembler | Implemented | x86/COFF assembler and object writer |
| Linker | Implemented | PE32/i386 linker with import support |
| Runtime | Implemented | Runtime library for compiled programs |
| Optimizer | O2/O3 HIR | V24 hardens HIR operand ordering and declaration/frame hoisting. Managed STRING inside a block with early exit remains a documented O2/O3 limit. |
Architecture — From Source to PE32
PBXA32 now in the PBX-Compiler
PBXA32 V24 (in the V10 package) is available in the PBX-Compiler — together with PBXA64, PBXB64, ScharffBasic and the PBX Editor.
What next
Who it is for: developers who want to compile PowerBASIC-compatible BASIC into native 32-bit Windows programs (PE32). Requirements: Windows; the target platform is x86-32/PE32. For 64-bit there are PBXB64, the primary product, and PBXA64. The current CHM reference is also available on its own. For moving PowerBASIC code we help inside your project.
Download V10 package (about 355 MB) Help with your project License
Free for private use, cleanly licensed for business
Private, non-commercial use is free. Business, team, and commercial usage goes through Smart Package Robot or by email to info@it-berater.org.
Download Activity
Daily activity for every offered download over the rolling last 28 days. Each downloadable file has its own persistent color.
Current download and release boundaries
PBX-Compiler V10: about 355 MB. Includes PBXA32 V24, PBXA64 V10, PBXB64 V24, PBXC64 RC50, ScharffBasic and the PBX Editor with help, includes and examples.
The shipped executable explicitly reports PBXA32 Compiler V24 version 1.8.0.0 and has a valid signature. The shipped compiler matches the official V24 release and is digitally signed.
Current CHM referenceV10 package checksum