AmigaBasic Compiler Enhanced (ACE)
- Size
- 3.9M (4,136,074 bytes)
- Added
- 2026-11-20 02:42
- Downloads
- 3
- Long Description
- CHANGELOG ========= v3.0.1 (2026-04-30) ------------------- New Features: - Variable-Sized Arrays (#119): DIM arr(n) now accepts variables and expressions for array dimensions, not just compile-time constants. Variable-dimension arrays are heap-allocated at runtime via ALLOC with a header storing dimension sizes for multi-dimensional indexing. Constant-sized arrays remain BSS-allocated as before. Changes: - 68000 Compiler Target: ACE compiler is now built for 68000, allowing it to run on any Amiga (previously required 68020). - Dual Runtime Libraries: Runtime libs ship as both 68020 (default, in lib/) and 68000 (in lib/68000/, requires vc.lib). The bas script auto-detects OPTION 2- in source and links the matching variant. - 68000 Builds of Tools: yap and parseusing now compiled with OPTION 2- for 68000 compatibility. Added 68000 version of vlink. - YAP Macro Limit Increased: Raised maximum macro count to 2048. - SuperOptimizer v2.28: Updated SuperOptimizer with new documentation (SuperOptimizer guide). Bug Fixes: - Math Libraries Always Opened at Startup: Fixed crash when an EXTERNAL module used float or trig operations that the main program did not reference. The compiler previously only opened mathieeesingbas / mathtrans when the main program XREF'd those library bases, but module XREFs are resolved at link time. Both libraries are now opened unconditionally during startup. Documentation: - Variable-sized arrays documented in ref.txt, ace.txt, and quickref.txt. - New SuperOptimizer guide. ------------------------------------------------------------------------------ v3.0.0 (2026-03-02) ------------------- New Features: - IEEE 754 Floats: Migrated from Motorola FFP to IEEE 754 single-precision floating-point format throughout compiler and runtime. All float literals, constants, and runtime operations now use IEEE single-precision. - VBCC Toolchain: Switched ACE compiler build from GCC to VBCC cross-compiler. Runtime libraries rebuilt with VBCC. - Object System (#97): CLASS, METHOD, EXTENDS, and GENERIC keywords for object-oriented programming. Single inheritance with runtime type dispatch via parent chain walk. Polymorphic method dispatch across multiple type combinations. TRON/TROFF trace support for METHOD definitions. - TYPECASE (#102): Type-based pattern matching (TYPECASE/CASE/END TYPECASE) with ISA inheritance semantics and variable narrowing, enabling runtime class dispatch where subclass members become accessible within each matched case block. - ATOM Primitive Type (#93): Lightweight symbolic constant type for pattern matching and tagging. Literal syntax: #:name. - TASKPROC Keyword (#114): SUB modifier for Exec Task entry points. Auto-saves/restores registers and calls Wait(0) before return. Zero-parameter SUBs only; cannot be called from ACE code directly. - Struct SUB Parameters (#95): Struct type names as SUB parameter types (e.g. SUB Foo(MyStruct s)), auto-generating pointer setup and eliminating manual DECLARE STRUCT boilerplate. - EXIT WHILE / EXIT REPEAT (#82): New statements to break out of WHILE...WEND and REPEAT...UNTIL loops early, analogous to EXIT FOR. - FREE Statement (#83): Per-block memory deallocation. FREE releases memory allocated by ALLOC for a specific block, complementing the existing CLEAR ALLOC which frees all allocations. - SUB Tracing (#85): New -t compiler flag and TRON/TROFF runtime commands for tracing SUB/FUNCTION entry and exit. OPTION t+/t- for per-file control of tracing. - CyberGfx Screen Support (#86): SCREEN mode 13 now also supports CyberGraphX retargetable graphics (in addition to Picasso96). - Bounded String Operations: Runtime _strncpy/_strncat preventing buffer overflows. Compiler emits destination buffer size for string