Difference between revisions of "Stm8 code size"

From SDCC wiki
Jump to: navigation, search
(Created page with "A history of code size in sdcc and a comparison to other compilers. == STM8 code size comparison (bytes): == {| border=1 class="simple" ! File ! Cosmic C² stm8 ! sdcc #xxx...")
 
(Results for current stm8 branch.)
Line 5: Line 5:
 
! File  
 
! File  
 
! Cosmic C² stm8  
 
! Cosmic C² stm8  
! sdcc #xxxx stm8  
+
! sdcc-stm8 #8533 stm8  
 
|-  
 
|-  
 
|  cvu_vinb.c  
 
|  cvu_vinb.c  
 
|  7  
 
|  7  
x
+
17
 
|-  
 
|-  
 
|  galois_lfsr.c  
 
|  galois_lfsr.c  
 
|  21  
 
|  21  
x
+
33
 
|-  
 
|-  
 
|  get_tile.c  
 
|  get_tile.c  
 
|  95  
 
|  95  
x
+
133
 
|-  
 
|-  
 
|  huffman_iterative.c  
 
|  huffman_iterative.c  
Line 29: Line 29:
 
|  init_loop.c  
 
|  init_loop.c  
 
|  33  
 
|  33  
x
+
69
 
|-  
 
|-  
 
|  insertion_sort.c  
 
|  insertion_sort.c  
 
|  108  
 
|  108  
x
+
253
 
|-  
 
|-  
 
|  memcpy_compression.c  
 
|  memcpy_compression.c  
 
|  31  
 
|  31  
x
+
78
 
|-  
 
|-  
 
|  memtovmemcpy.c  
 
|  memtovmemcpy.c  
 
|  30  
 
|  30  
x
+
105
 
|-  
 
|-  
 
|  play_music.c  
 
|  play_music.c  
 
|  393  
 
|  393  
|  x
 
|-
 
|  sdcc_divulong.c
 
|  100
 
 
|  x
 
|  x
 
|-  
 
|-  
 
|  sdcc_mullong.c  
 
|  sdcc_mullong.c  
 
|  132  
 
|  132  
x
+
609
 
|-  
 
|-  
 
|  set_screen_mode.c  
 
|  set_screen_mode.c  
 
|  49  
 
|  49  
x
+
86
 
|-  
 
|-  
 
|  set_sprite_x.c  
 
|  set_sprite_x.c  
 
|  66  
 
|  66  
x
+
158
 
|-  
 
|-  
 
|  z88dk-mktime.c  
 
|  z88dk-mktime.c  
 
|  239  
 
|  239  
x
+
638
 
|-  
 
|-  
 
|  total  
 
|  total  

Revision as of 16:57, 18 April 2013

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

STM8 code size comparison (bytes):

File Cosmic C² stm8 sdcc-stm8 #8533 stm8
cvu_vinb.c 7 17
galois_lfsr.c 21 33
get_tile.c 95 133
huffman_iterative.c 161 x
huffman_recursive.c 198 x
init_loop.c 33 69
insertion_sort.c 108 253
memcpy_compression.c 31 78
memtovmemcpy.c 30 105
play_music.c 393 x
sdcc_mullong.c 132 609
set_screen_mode.c 49 86
set_sprite_x.c 66 158
z88dk-mktime.c 239 638
total x x


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


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