rg-cc release notes
Optimising C99 compiler for Atari ST, Falcon, and 680x0. Newest release first.
0.8.3 — 2026-11-22
Interactive build progress output and RBS / response-file fixes for rg-cc.
New features
- Added Cargo-style compile and link progress lines, section sizes, and an animated spinner on interactive terminals via
--progress. Non-interactive and quiet runs stay silent by default.
Bug fixes
- Fixed RBS startup object selection with
--vbcc-fastcall-aliassocrt0matches the effective ABI and flag order used during compilation. - Restored
\#escape handling in@fileresponse files while keeping unquoted Windows backslash paths intact.
0.8.2 — 2026-11-22
Bug fixes for VBCC compatibility mode, Windows response files, --tos-flags, and --version output.
Bug fixes
- Fixed
--vbcc-fastcall-aliaslinking with the built-in startup code so it calls@main. - Preserved unquoted Windows backslash paths in
@fileresponse files instead of stripping backslashes. - Added symbolic flag names (such as
fastload,fastram,fastram_alloc,private,global,super, andreadonly, comma- or+-separated) to--tos-flagsalongside hex and decimal values. - Changed
--version/-Vto write tostdoutinstead ofstderr.
0.8.1 — 2026-11-22
Windows 7 support and documentation polish for rg-cc.
Bug fixes
- Restored Windows 7 (
x86_64andx86) binary builds. - Clarified floating-point flags (
--soft-float/--hard-float), target CPU options, and benchmark summaries in the documentation.
0.8.0 — 2026-11-22
First public release of rg-cc, our optimising C99 compiler for Motorola 680x0 and Atari ST/Falcon. Bundles built-in Atari C, math, Line-A, GEM, and POSIX runtime libraries out of the box alongside tighter 68000 code generation and RBS project builds.
New features
- Bundled built-in Atari runtime libraries (
libc,libm,liblinea,libext,libgem, andlibposix) linked lazily on demand, with--emit-runtimeto inspect or extract the archives. - Added full IEEE-754
doubledecimal formatting (%f,%e,%g) toprintfwith exact rounding across arbitrary precisions and large finite exponents. - Aligned hosted
errno.hconstants with the standard Atari MiNT C runtime ABI.
Improvements
- Added pre-unroll dead-code elimination, offset-0 scalar replacement of aggregates, symbolic 16-bit induction-variable strength reduction, and constant global range bounds.
- Tightened 64-bit signed right-shift chains,
>> 31sign-extension sequences, wide-shift pre-shifts, and narrow zero-extensions (Zexttoext.l). - Improved loopless register allocation spill-cost weighting and cached runtime archives in the RBS build cache.
Bug fixes
- Fixed RBS
include,force_include, andexport_includespath handling,-Wpseparated arguments,-x assemblerinputs, and-O2promotion whenopt_size = false. - Hardened peephole
X-flag andCCRliveness guards and fixedmem2reg/ global range provenance edge cases. - Updated
README.mdABI documentation to list only supported calling conventions (fastcall,cdecl,stdargs,purec).
0.7.42 — 2026-11-15
Tighter 16-bit (--mshort) and 32-bit MC68000 code generation across switches, division, narrow loads, and inner loops.
Improvements
- Lower 16-bit affine switches and signed 16-bit division/remainder directly to 68000 arithmetic instead of jump tables or 32-bit helper calls.
- Narrow non-volatile 16- and 32-bit global loads when only the low bytes are used, without changing
volatileaccesses. - Avoid redundant register copies in commutative ALU ops, narrow zero-extensions, and straight-line division/remainder pairs.
- Hoist invariant non-volatile loads out of guarded inner loops and thread constant-exit latches directly to loop exits.
- Avoid duplicating large stack-buffer callees at multiple inline sites.
0.7.41 — 2026-11-14
Stronger CLI argument and cache error handling, plus broader Make and build-system flag compatibility.
Improvements
- Reject incomplete two-token CLI flags cleanly instead of dropping them, and cap macro expansion recursion with a clear diagnostic.
- Report backend codegen failures and unexpected panics as structured compiler diagnostics.
- Support standard input via
-, explicit-xlanguage selection, and-pipe, alongside common Makefile dependency and optimisation flags. - Group internal debug/dump switches under an unstable heading in
--helpand align-Sassembly output with GCC and VBCC. - Add freestanding link guidance on unresolved symbols and accept quoted VBCC register hints in third-party headers.
0.7.40 — 2026-11-12
Major 68000 loop, pointer-scan, and global-addressing optimisations, cutting cycle counts and .text size across benchmarks and real Atari ST titles.
Improvements
- Fold byte and word pointer-scan loops into
(aN)+post-increment addressing and rotate loop latches ahead of loop headers. - Sink narrow modular casts out of wrapping loop chains and extend count-up exit rotation to 8- and 16-bit loop guards.
- Anchor clustered global symbol accesses on callee-saved base registers across loops and calls.
- Lower small 32-bit constant arithmetic via
moveqand address adjustments vialea, and fold correlated compares intosCCsequences. - Generalise
(aM)+,(aN)+load-store fusion and constant-fold same-base pointer differences.
0.7.39 — 2026-11-12
Cleaner narrow bitwise, shift, stack-spill, and countdown loop codegen across the 68000 backend.
Improvements
- Elide redundant sign-extension round-trips after narrow arithmetic and variable-count shifts.
- Lower narrow bitwise masks via
moveqand fold read-only stack spills directly into 32-bit ALU and compare instructions. - Extend
dbracountdown folding to 16-bit trip counts and fold zero-scan loops totst (aN)+. - Hoist small loop-invariant constants into available callee-saved registers and remove duplicate
lealoads across forward branches. - Fold overflowing floating-point constants in comparisons at compile time.
0.7.38 — 2026-11-11
Stronger shift-recurrence and bit-test codegen, cutting planar bitplane unpack cycles by over 60%.
Improvements
- Strength-reduce exponential shift expressions (
C << ivandC >> iv) in counted loops into shift-recurrence induction variables. - Strip redundant casts before bit-mask tests and elide dead
tstinstructions and reloads ahead of bit-manipulation ops. - Lower 32-bit high/low word packing directly to
move.w; swap.w; move.wwithout masks or extra scratch registers.
0.7.36 — 2026-11-08
Whole-program LTO and persistent stat caching in RBS, built-in Atari OS trap bindings, and syntax-only checking.
New features
- Support whole-program link-time optimisation (
lto = true) in RBS for cross-file optimisation before linking. - Add
-fsyntax-onlyto run parsing and type checking without emitting code. - Ship inline trap bindings for GEMDOS, BIOS, and XBIOS in the built-in Atari headers, plus a
<tos.h>umbrella header. - Export all embedded Atari and standard C headers via
--emit-headers.
Improvements
- Cache source metadata and AST tag registries in
.rbs-cache/for faster incremental builds and cross-unit ODR checks. - Wire
-stack-sizeto Atari GEMDOS executable stack symbols and preserve directory structure on non-flattened RBS file copies. - Preprocess assembly sources with target macro definitions and decouple 680x0 emulation from default library builds.
0.7.35 — 2026-11-07
More expressive .rbs build definitions with set conditions, transitive exports, brace globs, and explicit output filenames.
New features
- Accept bare identifiers in RBS block headers and
in/not inset conditions inwhenblocks. - Add first-class dialect, size-optimisation, LTO, common-symbol, and hosted properties to
.rbstargets. - Propagate
export_includesandexport_definestransitively across library dependencies and support{a,b,c}brace expansion in globs. - Support explicit output
filenameoverrides on targets, defaulting static archives tolib<id>.aand Atari binaries to standard uppercase extensions.
0.7.32 — 2026-11-06
Static archive linking, dialect-aware assembler flags, and RBS build coverage across 21 third-party Atari C projects.
New features
- Allow static archives directly in target
sourcesand honour RMAC, Madmac, and Devpac dialect flags in RBSasflags. - Add canonical
build.rbsdefinitions across 21 open-source Atari C projects, including pre-generated MiNTLib headers for hermetic builds.
0.7.31 — 2026-11-05
Introduced the integrated Reservoir Build System (RBS) and native Pure C .PRJ project building in a single process.
New features
- Build multi-target projects from declarative
build.rbsfiles with scoped configs, globbing, and hermetic file operations. - Build classic Pure C, Turbo C, and AHCC
.PRJproject files directly, including per-file flag overrides and nested sub-targets. - Cache compiled objects in
.rbs-cache/and share guarded header token streams across translation units in memory. - Run parallel C compilation, 680x0 assembly, archiving, and linking in one process, with
--compdbexport and external toolchain delegation for non-68k hosts.
0.7.30 — 2026-11-05
Better --abi=cdecl helper codegen, branchless bitwise-not selects, and stack-slot support for inline assembly.
Improvements
- Inline non-variadic leaf helpers and enable tail-call elimination under
--abi=cdecl. - Support memory constraints and stack-slot fallback in extended inline assembly, preserving
a5when clobbered. - Mask narrow bitwise-not and negation constant folds to their declared integer width.
- Fold conditional bitwise-not selects into branchless
x ^ masksequences and share duplicate multi-register return epilogues.
0.7.27 — 2026-10-24
Fixed repeated body labels and improved PC-target diagnostics in inline assembly. Fixed iteration counts in the tested loops using integer shifts.
Bug fixes
- REPT, IRP and IRPC blocks now retain the final iteration's body-label binding, instead of failing with a duplicate-definition error.
- Diagnose inline assembly that combines byte-offset or unresolved-equate PC targets with calls requiring register preservation; use symbolic labels for these mixed blocks.
- Retain explicit word and long displacements when resolving PC-address constants.
- In the tested 32-bit loops, conditions now read the value from before a shift and produce the correct iteration count.
0.7.26 — 2026-10-17
Improved code generation for the shared floating-point comparisons covered by regression tests.
Improvements
- Reduce comparison calls in the tested single- and double-precision conditional expressions.
0.7.25 — 2026-10-16
Improved code generation for the parameter and switch cases covered by regression tests.
Improvements
- Reduce code size and execution cost in the tested parameter and switch cases.
- Remove calls that only forward a parameter in the tested large functions when experimental inlining is enabled.
0.7.24 — 2026-10-16
Improved code generation for the nested logical expressions covered by regression tests.
Improvements
- Reuse Boolean results in the tested nested logical expressions.
0.7.23 — 2026-10-16
Improved code generation for the single-precision signed-zero negations covered by regression tests.
Improvements
- Avoid negation calls for the tested single-precision zero constants while preserving their signs.
0.7.22 — 2026-10-16
Improved code generation for the software double-precision negation cases covered by regression tests.
Improvements
- Avoid negation calls in the tested double-precision cases while preserving signed zeros and NaN payloads.
0.7.21 — 2026-10-16
Improved experimental inlining for the floating-point value checks covered by regression tests.
Improvements
- Reduce code size and execution cost in tested single-precision value-classification cases with experimental inlining enabled.
- Preserve operand order and precision when analysing the tested software floating-point arithmetic and comparison paths.
0.7.20 — 2026-10-16
Improved code generation for the double-precision self-comparisons and conditional equality tests covered by regression tests.
Improvements
- Reduce comparison calls in tested double-precision self-comparisons, including NaN payloads confined to the lower half.
- Reuse equality results on tested conditional paths while preserving NaN and signed-zero behaviour.
0.7.19 — 2026-10-15
Improved code generation for the masked integer comparisons and single-precision floating comparisons covered by regression tests. Fixed incorrect results in tested cases involving condition flags, volatile reads and loop exits.
Improvements
- Reduce helper calls for tested single-precision comparisons of a value with itself, preserving NaN behaviour.
- Reduce highest-bit masked comparisons to bit tests in the covered integer cases.
Bug fixes
- Fix incorrect branches in tested cases where register reuse or stack reloads changed live condition flags.
- Preserve discarded volatile reads and loop-exit values in the covered regression cases.
0.7.18 — 2026-10-12
Preserved distinct scalar float and integer representations across memory optimizations, isolated recursive stack frames when local addresses escape, and expanded tail-recursion elimination across multi-function compilation units.
Improvements
- Multi-function tail-recursion optimization: Tail-recursion elimination now processes candidate functions across single-file and multi-file translation units, reducing call overhead and stack depth.
- Calling convention return extensions: Compilation accepts narrow integer return values such as
charandshortwhere the target calling convention extends them into a full data register, while rejecting incompatible return representations.
Bug fixes
- Float and integer representation preservation: Memory access optimization now preserves distinct float and integer scalar types, preventing values from being forwarded through mismatched integer or float bitcasts across loads, stores, and branch merges.
- Escaping recursive local stack frame isolation: Functions whose local variable addresses escape their scope now maintain isolated stack frames across recursive calls, preventing iterations from overwriting parent frame storage.
0.7.17 — 2026-10-11
Added stack frame budgeting for inlined functions, isolated preprocessor directives across assembly line comments, and preserved condition register tests during parameter loading.
Improvements
- Inlined function stack budgeting: Function inlining now estimates static local storage and register requirements, preventing inlined call sites from creating oversized stack frames that exceed 16-bit displacement limits.
Bug fixes
- Assembly comment directive isolation: Line comments in assembly source files now ignore apostrophes, preventing comments from being misparsed as character literal delimiters and suppressing conditional compilation directives.
- Condition flag preservation on parameter loads: Condition register tests are preserved across stack parameter loading optimizations, preventing deferred parameter reads from corrupting active branch comparisons.
0.7.16 — 2026-10-11
Improved preprocessor handling for multi-line macro invocations, preserved condition flags across register spills, and prevented loop-edge variable updates from overwriting active branch operands.
Improvements
- Multi-line macro argument lists: Function-like macros with invocation parentheses and arguments split across line breaks are now expanded consistently while preserving correct source line accounting and directive boundaries.
Bug fixes
- Condition flag preservation across spills: Narrow byte and word comparison flags are now protected through register allocation, preventing register spill stores from corrupting condition flags with upper-register bits.
- Branch operand preservation on loop edges: Edge-transition variable updates no longer overwrite values that are still required by surviving branch decisions or address computations.
0.7.15 — 2026-10-11
Fixed scope isolation for global variable sizes in compile-time size expressions, improved dependent load hoisting for chained pointer dereferences, and gated jump tables on large switch statements to prevent branch overflow.
Improvements
- Switch statement long dispatch: Large switch statements exceeding 16-bit branch limits now avoid compact jump tables in favor of absolute-long dispatch chains, preventing branch displacement overflow in functions with extensive case lists.
- Dependent pointer load hoisting: Chained pointer dereferences in consecutive loops and basic blocks now correctly track hoisted base addresses, allowing multi-level struct and array member loads to be consolidated without redundant memory reads.
Bug fixes
- Global variable size scope isolation: Fixed an issue where local variables shadowing file-scope globals could overwrite the compiler's size tables for compile-time
sizeofevaluations, ensuring global object sizes remain intact across local scopes.
0.7.14 — 2026-10-10
Added common symbol merging for tentative global definitions and dynamic stack allocation for oversized local buffers.
New features
- Tentative definition merging (
-fcommon): Added the-fcommonflag to support tentative definition merging for uninitialized global variables across compilation units. - Large stack buffer handling: Local allocations of 32KB and larger automatically use dynamic stack adjustment to prevent 16-bit displacement overflow in function stack frames on 68000 targets.
0.7.13 — 2026-10-08
Loop unswitching for loop-invariant conditions, period-2 alternating stride loop unrolling, and inner-loop register allocation tuning for leaf loops.
Improvements
- Loop-invariant condition unswitching: Loops containing conditional branches whose conditions do not vary across iterations are duplicated into specialized versions with the invariant branch hoisted into loop preheaders, eliminating branch evaluations from inner loops.
- Alternating stride loop unrolling: Loops with periodic stride updates that alternate between two steps are unrolled by factor 2, folding the alternating displacements into uniform strides and eliminating variable index arithmetic.
- Leaf loop register allocation: In call-free inner loops, loop induction counters and invariant strides are prioritized for callee-saved data registers, preventing register spills to stack frames.
0.7.12 — 2026-10-07
Added loop-invariant call hoisting, tail-call recursion optimization, and closed-form accumulator summation.
Improvements
- Loop-invariant call motion: Pure and constant library calls whose inputs do not vary across loop iterations are hoisted to loop preheaders, eliminating redundant computations within repetitive loops.
- Mutual tail-call recursion optimization: Cyclic tail calls between pure functions are transformed into direct iterative loops with register updates, eliminating function call frame overhead.
- Closed-form loop summation: Counted loops that accumulate constant or loop-invariant terms are recognized and reduced into direct closed-form multiply-accumulate operations in loop headers.
- Dead loop elimination: Finite loops containing side-effect-free pure computations whose computed results are unused at exit are completely removed.
0.7.11 — 2026-10-03
Added support for large stack frames, standard C library integration, and stack-based calling conventions.
New features
- Large stack frame support: Stack frames larger than 32KB now allocate via 32-bit stack adjustment instructions with dynamic displacement synthesis for large local buffers.
- Standard stack-based calling conventions: Extended compatibility for standard library routines and operating system bindings requiring stack-based parameter passing.
- Spill allocation ordering: Optimized register spill placement to ensure local spill slots remain accessible within 16-bit hardware displacement limits.
0.7.10 — 2026-10-03
Added support for Pure C and GNU inline assembly syntax, including inline opcodes, assembly statement blocks, explicit register variables, and top-level assembly declarations.
New features
- Pure C inline opcodes: Added parser and lowering support for Pure C function definitions with inline opcode sequences, emitting direct machine instructions in the function body.
- Pure C assembly blocks (
asm { ... }): Added support for Pure C statement blocks with automatic register and memory operand classification. - GNU register variables: Supported explicit register binding syntax for local variables with direct allocation to target machine registers.
- File-scope assembly statements: Implemented module-level assembly definitions for both Pure C and GNU inline assembly formats.
0.7.9 — 2026-10-03
Added compiler personality emulation presets with predefined macro bundles and macro introspection.
New features
- Compiler personality presets (
--dialect): Added the--dialectoption to select predefined macro presets forgcc(default),purec,vbcc,ahcc,sozobon,alcyon, andnone. - Predefined macro isolation: Each compiler personality defines only its own compiler-identifying macros to prevent header conflicts, while maintaining universal Atari ST and 680x0 target definitions across the seven dialects.
- Macro introspection (
--dump-defines/-dM): Added the--dump-definesflag and-dMalias to dump active macro definitions after preprocessing, including support for inspecting built-in presets without input files.
0.7.8 — 2026-10-03
Extended GNU C99 compatibility, pre-seeded variadic types, and lossless heritage source ingestion.
New features
- GNU keyword aliases:
__const,__volatile,__restrict, and__signedare recognized in C sources. - GNU inline assembly named operands: symbolic operand names like
%[src]and%[dest]are resolved directly in inline assembly templates. - Built-in
__builtin_va_list: pre-seeded built-in typedef resolving tovoid *on 68000 targets, enabling clean compilation of<stdarg.h>and<stdio.h>headers. - Lossless heritage source decoding: non-UTF-8 character encodings commonly found in historical Atari ST source comments and headers are decoded losslessly without corruption.
0.7.7 — 2026-10-02
A robustness and conformance release. A structure or union that contains a by-value member of itself is now refused with a located diagnostic instead of aborting the compiler, a source file that cannot be read as text now reports where the read failed, two C99 constraints the compiler used to accept in silence are now diagnosed, and the Windows 7 / 8 packages build again.
New features
- Two C99 constraints are now diagnosed. An identifier, string literal or character constant whose universal character name is below
00A0or names a surrogate is refused with a located error (C99 §6.4.3p2). An assignment, initialization, argument or comparison between pointers to incompatible types now warns as-Wincompatible-pointer-types(C99 §6.3.2.3p1), which--werrorpromotes to an error. Both were previously accepted with no diagnostic at all; the severity matches the one a hosted C99 compiler uses, and the first is a refusal because the standard makes it a constraint on the source character set.
Bug fixes
- A structure or union that contains a by-value member of itself — directly, through a union, a typedef, an array, a
sizeof, an enumerator, or a mutual pair — is now refused witherror: 's' has incomplete type 'struct S'(C99 §6.7.2.1p1) and exit status 1. It previously overflowed the stack and aborted the process with no diagnostic. A pointer member (struct S { struct S *p; };) is unaffected and remains legal, as the standard requires. - A source file that cannot be read as text — for example a binary file passed by mistake — now reports its diagnostic at the start of the file (
file:1:1: error: cannot read: …) instead of with no location. - The Windows 7 / 8 packages build again. Cross-building the
windows7artifacts failed at link time when a dependency emitted its Windows import-library search path only for one literal target name; the dependency is updated so every declared Windows target links.
0.7.6 — 2026-09-30
Two fixes: a C11 declaration the compiler accepted without checking, and the names of the 32-bit
types in the built-in <stdint.h>.
New features
_Static_assertis enforced: the C11 compile-time assertion (C11 §6.7.10) is accepted at file and block scope, and a condition that evaluates to zero is a compile error carrying the message written in the source. A condition that is not an integer constant expression is refused rather than passing unseen;sizeof,enumconstants and bothoffsetofspellings fold. The compiler's test corpus covers the accepted forms and both refusals.
Bug fixes
- 32-bit
<stdint.h>types match the target header:int32_tanduint32_t, together with the same-widthleast,fastand pointer-width aliases, arelongandunsigned longrather thanintandunsigned int. Both spellings are 32-bit and the emitted machine code is unchanged, but they are distinct types, so a source file that also writestypedef unsigned long U32;beside the header'suint32_t U32compiles as it does on the target compiler instead of being refused as a redefinition.
0.7.5 — 2026-09-30
An internal configuration update aligning linker option initializers with the updated linker pipeline layout options.
Bug fixes
- Linker configuration alignment: Added the explicit relaxation pass option to internal linker initializations when driving the compiler pipeline.
0.7.4 — 2026-09-29
An internal-plumbing release with no change to the code rg-cc emits or to the flags it accepts.
The compiler core now reaches the filesystem through an injected port, and takes its diagnostic
switches, its DWARF working directory and its __DATE__/__TIME__ spellings as values supplied
by the driver rather than reading the process environment. Output is unchanged: the compiler test
corpus reproduces byte-identically at -O0 through -O3.
0.7.3 — 2026-09-29
The --std option is now read, and the C99 rule it was only imitating is enforced.
New features
- The
--stdoption is read:c89,c99,gnu99andc11now select the C standard the front end applies.__STDC_VERSION__follows the dialect —199901Lforc99andgnu99,201112Lforc11, and undefined forc89, where the macro does not exist (§6.10.8). A value outside that set is refused while arguments are parsed, with the accepted set in the message and in--help, instead of being accepted while changing nothing.
Bug fixes
- An unprototyped call is an error under
--std=c99and--std=c11: calling a function that is declared nowhere in the translation unit used to compile silently into a call against whatever symbol the linker resolved — a misspelt callee, entered through the default calling convention. It is now the constraint it is meant to be (§6.5.2.2p1).--std=c89,--std=gnu99and omitting--stdkeep the permissive C89 rule the existing test corpus is written against. An undeclared identifier used as a value is refused in the four dialects and with no--stdgiven.
0.7.2 — 2026-09-27
A bugfix release for an array compound literal used where a pointer is expected.
Bug fixes
- File-scope array compound literals that decay to a pointer:
static int *p = (int[]){10, 20, 30};now stores the address of the literal's own object inpinstead of copying the array bytes into the pointer, which previously produced a garbage pointer or a crash; the compiler test corpus covers the shape at-O0through-O3.
0.7.1 — 2026-09-24
A bugfix release resolving anonymous struct/union member designated initialization, bitfield container bounds safety, and designated array in-place mutations.
Bug fixes
- Anonymous struct and union designated initialization: Designated initializers targeting anonymous struct or union fields (
.anon_field = val) now correctly resolve member offsets and layouts during static and runtime initialization. - Bitfield container shift safety: Semantic analysis computes container offsets from
start_byteand saturates shift calculations, preventing compiler panics on wide bitfields. - In-place array designated initialization: Designated array initializers modify elements in-place without zero-wiping previously initialized elements.
0.7.0 — 2026-09-19
Terminal chrome, masthead banner, and help styling overhaul.
New features
- Emerald Green terminal branding: House terminal chrome shared across the tool family, using Emerald Green palette (
#34d399/#4ade80). - Interactive masthead & banner: Block-rendered ASCII logo and version badge with
--bannerflag (auto,always,never) and--colorcontrols. - Categorized
--helpoutput: Clean styled section headers (Targets, Preprocessor, Optimization, Linking, Output, Diagnostics, General) with concise argument descriptions.
0.6.2 — 2026-09-22
A patch release adding mutual CLI flag override symmetry for --text-asm and --direct-elf.
Bug fixes
- Mutual CLI flag override symmetry:
--text-asmnow definesoverrides_with = "direct_elf", ensuring a trailing--text-asmcorrectly overrides a global or preceding--direct-elfflag.
0.6.1 — 2026-09-22
A patch release with no change to the code rg-cc emits or to the flags it accepts. The
driver's internal decisions were consolidated so that each one has a test that can see it, and the
binary is republished so the release matches the source tree it was built from. If 0.6.0 is working
for you, there is nothing here you need.
Improvements
- One implementation of each driver decision: source and object classification, text-assembly selection, declaration-dump formatting, depfile naming, LTO object naming and the whole flag-to-driver mapping are named functions rather than conditions written inline in the driver's argument loop — so a wrong answer to any of them now fails a test instead of only being observable through the compiled output.
-MFtakes one path:-MFand-MF=pathare handled by a singlestrip_prefix("-MF")with the=optional, replacing an arm whose trailing characters its own preceding case had already consumed.- Flag aliases in tables: the documented spellings and the ones deliberately no longer accepted are one row per entry in a table apiece, instead of two hand-written ladders that could drift from the tests meant to check them.
- ODR and LTO merge guards named: the "do these definitions conflict" and "does
-fltoearn a merged object" decisions are functions pinned on their boundaries (zero, one, two and three registries built from genuinely conflicting definitions, and-fltowith no inputs).
0.6.0 — 2026-09-18
First internal release of rg-cc, an optimising C99 compiler, 680x0 assembler, and Atari linker in a single standalone executable.
New features
- Self-contained distribution: Standalone binary for macOS, Linux, and Windows with built-in C99 and Atari TOS headers and zero external dependencies.
- Single-step TOS linking: Compile C sources straight to runnable Atari executables (
rg-cc main.c -o game.tos), with automatic CRT0 startup and runtime helper linking (or-nostdlibto opt out). - Header and runtime export: Export the built-in headers (
--emit-headers) and runtime archives (--emit-runtime) for external toolchains, or override them with user include paths and-nostdinc. - Direct ELF emission (
--direct-elf): Emit relocatable ELF32 objects straight into memory without an intermediate text assembly pass. - Whole-program LTO (
--lto): Cross-module inlining, dead-code pruning, interprocedural register allocation, and global constant propagation. - 680x0 SSA optimiser: Multi-tier optimisation (
-O0–-O3,--opt-size) targeting 68000 through 68060, optional hardware FPU (--hard-float), and VBCC fastcall ABI compatibility.