Cycle count and binary size benchmarks across 20 open-source Atari ST and Falcon C codebases, measured on 68000 and 68030 execution against m68k-elf-gcc 15.1.0.
Overview
To test real-world C99 code we didn't write ourselves, we build and measure 20 open-source Atari ST and Falcon games, apps, OS kernels, and libraries against m68k-elf-gcc 15.1.0 -O2.
Faster across all 20 projects: rg-cc cuts cycles by 3% to 35% compared to GCC 15 (runtime execution profiling for apps, games, CoreMark, and zlib; static per-module cycle estimates for OS kernels and system libraries).
Smaller code in every build: Binary sizes drop by 7% to 27% across the entire suite.
rg-cc produces a 23.7 KB (−10.5%) smaller executable than GCC 15, optimising tilemap rendering, planar sprite masking, and actor state machine updates.
rg-cc cuts executable code size by 85.8 KB (−11.8%) vs GCC 15 and executes document reflow in 12.0% fewer cycles, optimising HTML DOM tree parsing, CSS box model layout, and LZW image decompression.
Metric
GCC 15.1.0
rg-cc
Delta
%
Cycle Count
21,850,400 cyc
19,230,562 cyc
−2,619,838 cyc
−12.0%
File Size
724,560 B
638,802 B
−85,758 B
−11.8%
Function
Calls
GCC 15
rg-cc
Delta
Optimisation
dom_parse_tokens
2,048
560
480
−14.3%
HTML tokenizer state machine jump table inlining
css_apply_styles
1,024
720
620
−13.9%
Style rule selector matching with register caching
layout_calc_boxes
512
1,280
1,120
−12.5%
Box model margin/border/padding width calculation
font_measure_string
4,096
168
142
−15.5%
Character width table lookup with move.b (a0,d0.w),d0
image_decode_gif
32
21,200
18,400
−13.2%
LZW decompressor bitstream reading loop unrolling
table_format_cells
128
3,240
2,850
−12.0%
HTML table column span layout strength reduction
draw_page_rect
256
1,020
890
−12.7%
VDI box fill coordinate rectangle translation
event_poll_mouse
1,024
210
180
−14.3%
Mouse coordinate hit testing with sub-register narrowing
cache_find_url
512
395
340
−13.9%
URL string hash table lookup unrolling
url_resolve_path
256
590
520
−11.9%
Relative URL path resolution without redundant string copies
ST / Falcon
Complete open-source TOS replacement · GitHub ·
rg-cc saves 49.3 KB (−14.6%) in binary text size and 102,816 static cycles (−9.9%) across 159 translation units, optimising low-level hardware register drivers, filesystem navigation, and VDI line drawing.
ST / Falcon
Full POSIX standard C library · 804 translation units · GitHub ·
rg-cc delivers 143,248 static cycles saved (−10.3%) and a 33.5 KB smaller text footprint (−6.9%) across 804 C modules, optimising printf formatting, string manipulation, and slab allocation.
Metric
GCC 15.1.0
rg-cc
Delta
%
Cycle Count
1,390,750 cyc
1,247,502 cyc
−143,248 cyc
−10.3%
File Size
486,368 B
452,896 B
−33,472 B
−6.9%
Function
GCC 15
rg-cc
Delta
Optimisation
_doprnt
4,120
3,280
−20.4%
Format specifier jump table and integer conversion unrolling
strchr
184
128
−30.4%
Leaf frame omission and post-increment byte search
memcpy
240
178
−25.8%
Long-word aligned post-increment transfer unrolling
malloc_slab
840
690
−17.9%
Free list pointer manipulation with register caching
free_slab
610
510
−16.4%
Slab header bitmask test and return epilogue tail-merging
qsort
1,620
1,340
−17.3%
Pivot selection and element swap loop strength reduction
sscanf
2,850
2,380
−16.5%
Input stream parser state machine jump table inlining
open_trap
190
130
−31.6%
GEMDOS trap 1 invocation with register-passed parameters
read_trap
190
130
−31.6%
GEMDOS trap 1 invocation with zero stack push overhead
ST / Falcon
Standard GEM bindings · 582 translation units · GitHub ·
rg-cc beats GCC 15 by 10.6 KB (−14.8%) in code size and 26,840 cycles (−9.3%) across 582 modules by avoiding parameter marshalling stub overhead on GEM trap arrays.
Metric
GCC 15.1.0
rg-cc
Delta
%
Cycle Count
288,600 cyc
261,760 cyc
−26,840 cyc
−9.3%
File Size
71,938 B
61,312 B
−10,626 B
−14.8%
Function
GCC 15
rg-cc
Delta
Optimisation
aes_trap_call
190
130
−31.6%
Trap 2 call with register-passed parameter block
vdi_trap_call
190
130
−31.6%
Trap 2 call with leaf frame omission
mt_objc_draw
340
270
−20.6%
AES control block array packing unrolling
mt_form_do
280
220
−21.4%
Dialog event parameter passing without stack spill
mt_wind_set
360
290
−19.4%
Window attribute coordinate marshaling folding
mt_graf_mouse
260
200
−23.1%
Mouse cursor shape pointer parameter pass
mt_evnt_multi
520
430
−17.3%
16-parameter event block marshaling with movem.l
mt_rsrc_gaddr
240
180
−25.0%
Resource address query with direct register return
rg-cc beats GCC 15 by 17.3 KB (−10.2%) in code size and 25,018 cycles (−5.1%) across all 56 modules via branchless bitwise-not diamond folding and CISC addressing in 4-plane blits.
ST / Falcon
Industry-standard algorithmic CPU benchmark · GitHub ·
rg-cc produces a 2.8 KB (−11.5%) smaller executable than GCC 15 while executing matrix multiplication, linked list sorting, state machines, and CRC16 at near-parity.
Metric
GCC 15.1.0
rg-cc
Delta
%
Cycle Count
5,039,944 cyc
4,883,424 cyc
−156,520 cyc
−3.1%
File Size
24,178 B
21,408 B
−2,770 B
−11.5%
Function
Calls
GCC 15
rg-cc
Delta
Optimisation
matrix_mul_const
100
1,420
1,240
−12.7%
2D matrix stride multiplication converted to shift+add
matrix_add_const
100
890
760
−14.6%
Post-increment memory addition unrolling
crcu16
4,096
48
42
−12.5%
CRC table lookup with move.w (a0,d0.w),d1 folding
list_sort_step
1,024
180
158
−12.2%
Linked list item pointer swap with leaf frame omission
ee_isdigit
2,048
42
34
−19.0%
Unsigned range comparison folding ((c - '0') <= 9)
core_bench_matrix
10
142,000
136,500
−3.9%
Matrix benchmark harness loop register residency
core_bench_list
10
98,000
95,200
−2.9%
List sorting benchmark iteration strength reduction
Freestanding / Lightweight
Minimalist C runtime for demoscene & games · GitHub ·
rg-cc cuts library code size by 13.4% and static archive footprint by 23.5% vs GCC 15, executing string benchmarks in 12.2% fewer cycles via post-increment pointer scanning and integer formatting strength reduction.
Metric
GCC 15.1.0
rg-cc
Delta
%
Cycle Count
857,220 cyc
752,648 cyc
−104,572 cyc
−12.2%
File Size
18,340 B
15,888 B
−2,452 B
−13.4%
Function
Calls
GCC 15
rg-cc
Delta
Optimisation
_strrchr
2,048
257,800
237,120
−8.0%
Reverse byte search loop with subq.l #1,a0 folding
_strncpy
1,024
56,120
46,400
−17.3%
Dual post-increment move.b (a1)+,(a0)+ with zero spills
_strcmp
4,096
110
92
−16.4%
Byte-wise comparison with dbra counter
_memcpy
2,048
380
310
−18.4%
Long-word transfer unrolling with tail byte handling
rg-cc slashes compiled library code size by 70.7 KB (−23.0%) and benchmark execution by 15.4% across GEM AES/VDI trap marshalling and recursive RSC object tree walks.
Metric
GCC 15.1.0
rg-cc
Delta
%
Cycle Count
634,200 cyc
536,540 cyc
−97,660 cyc
−15.4%
File Size
308,074 B
237,344 B
−70,730 B
−23.0%
Function
Calls
GCC 15
rg-cc
Delta
Optimisation
cf_dialog_draw
120
3,450
2,890
−16.2%
Dialog box border and fill drawing with VDI batching
cf_window_clip
240
890
740
−16.9%
Rectangle intersection clipping math with register caching
cf_event_loop
60
1,420
1,180
−16.9%
Multi-event evnt_multi buffer setup without stack frame
cf_rsc_tree_walk
480
410
330
−19.5%
GEM OBJECT tree recursive traversal with pointer residency
cf_calc_rect_union
512
220
175
−20.5%
Bounding box union coordinate folding
cf_string_measure
1,024
165
135
−18.2%
VDI font metrics lookup in data registers
cf_pop_up_menu
60
4,800
4,120
−14.2%
Pop-up menu item hit testing and checkmark rendering
cf_slider_position
360
380
310
−18.4%
Slider thumb coordinate scaling via fixed-point shift+add
cf_form_center
120
490
410
−16.3%
Screen-centring coordinate division converted to shift
Standard Compression
DEFLATE/INFLATE data compression engine · GitHub ·
rg-cc reduces library code size by 17.3 KB (−18.2%) and speeds up decompression benchmarks by 11.6%, optimising inner Huffman bitstream decoding and Adler-32 unrolling.
Metric
GCC 15.1.0
rg-cc
Delta
%
Cycle Count
3,383,200 cyc
2,990,744 cyc
−392,456 cyc
−11.6%
File Size
94,820 B
77,536 B
−17,284 B
−18.2%
Function
Calls
GCC 15
rg-cc
Delta
Optimisation
inflate_fast
64
98,372
88,152
−10.4%
Huffman bitstream decode loop with pointer variable caching
crc32_z
128
56,264
50,592
−10.1%
Unrolled 8-word XOR with constant-offset table base retention
adler32
128
18,400
15,900
−13.6%
16-iteration unrolled modulo addition loop
deflate_slow
32
44,200
39,800
−10.0%
Match finder hash chain search with dbra counter
longest_match
512
1,840
1,610
−12.5%
String match comparison with post-increment stepping
trees_build_huffman
64
6,400
5,600
−12.5%
Frequency heap sift-down with leaf frame omission
fill_window
32
12,800
11,200
−12.5%
Sliding dictionary window buffer copy unrolling
flush_pending
128
920
810
−12.0%
Pending bit buffer flush with bitwise shift folding
compress_block
64
8,900
7,850
−11.8%
Literal and distance symbol emission loop
bi_reverse
1,024
85
72
−15.3%
16-bit word bit reversal with register swapping
Overall Matrix
Games, desktop apps, CoreMark, and zlib report runtime execution cycles; OS kernels and system libraries (EmuTOS, MiNTLib, fVDI, GEMlib, STDL, FreeMiNT, libcmini, cflib) report static per-module cycle estimates.