Difference between revisions of "Stm8 code size"

From SDCC wiki
Jump to: navigation, search
Line 5: Line 5:
 
! File  
 
! File  
 
! Cosmic C²
 
! Cosmic C²
! sdcc-stm8 #8537³
+
! sdcc-stm8 #8537
! sdcc #8792
+
! sdcc #8792³
 
|-  
 
|-  
 
|  cvu_vinb.c  
 
|  cvu_vinb.c  

Revision as of 14:15, 13 August 2013

A history of code size in sdcc and a comparison to other compilers.

STM8 code size comparison (bytes):

File Cosmic C² sdcc-stm8 #8537 sdcc #8792³
cvu_vinb.c 7 15 11
galois_lfsr.c 21 34 20
get_tile.c 95 129 93
huffman_iterative.c 161 323 164
huffman_recursive.c 198 358 189
init_loop.c 33 69 30
insertion_sort.c 108 247 156
memcpy_compression.c 31 93 66
memtovmemcpy.c 30 101 55
play_music.c 393 721 393
sdcc_mullong.c 132 673 391
set_screen_mode.c 49 75 63
set_sprite_x.c 66 152 67
z88dk-mktime.c 239 618 423
total 1563 3609 2121


The benchmark files can be found at http://colecovision.eu/stuff/testbench.tar.gz

² C Compiler for STM8 (COSMIC Software); Generator V4.3.4 - 23 Mar 2010

³ --opt-code-size --max-allocs-per-node 2500000

This is a list of feature requests, that combined will probably get code size down near to the level of the non-free compilers.

Request ID Summary
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox