Difference between revisions of "Stm8 code size"

From SDCC wiki
Jump to: navigation, search
(Results for current stm8 branch.)
(STM8 code size comparison (bytes):)
(2 intermediate revisions by one user not shown)
Line 4: Line 4:
 
{| border=1 class="simple"
 
{| border=1 class="simple"
 
! File  
 
! File  
! Cosmic C² stm8
+
! Cosmic C²
! sdcc-stm8 #8533 stm8  
+
! sdcc-stm8 #8537
 +
! sdcc-stm8 #8586
 
|-  
 
|-  
 
|  cvu_vinb.c  
 
|  cvu_vinb.c  
 
|  7  
 
|  7  
17
+
15
 +
|  15
 
|-  
 
|-  
 
|  galois_lfsr.c  
 
|  galois_lfsr.c  
 
|  21  
 
|  21  
33
+
34
 +
|  32
 
|-  
 
|-  
 
|  get_tile.c  
 
|  get_tile.c  
 
|  95  
 
|  95  
133
+
129
 +
|  120
 
|-  
 
|-  
 
|  huffman_iterative.c  
 
|  huffman_iterative.c  
 
|  161  
 
|  161  
x
+
323
 +
|  288
 
|-  
 
|-  
 
|  huffman_recursive.c  
 
|  huffman_recursive.c  
 
|  198  
 
|  198  
x
+
358
 +
|  306
 
|-  
 
|-  
 
|  init_loop.c  
 
|  init_loop.c  
 
|  33  
 
|  33  
 
|  69
 
|  69
 +
|  54
 
|-  
 
|-  
 
|  insertion_sort.c  
 
|  insertion_sort.c  
 
|  108  
 
|  108  
253
+
247
 +
|  191
 
|-  
 
|-  
 
|  memcpy_compression.c  
 
|  memcpy_compression.c  
 
|  31  
 
|  31  
78
+
93
 +
|  77
 
|-  
 
|-  
 
|  memtovmemcpy.c  
 
|  memtovmemcpy.c  
 
|  30  
 
|  30  
105
+
101
 +
|  86
 
|-  
 
|-  
 
|  play_music.c  
 
|  play_music.c  
 
|  393  
 
|  393  
x
+
721
 +
|  669
 
|-  
 
|-  
 
|  sdcc_mullong.c  
 
|  sdcc_mullong.c  
 
|  132  
 
|  132  
609
+
673
 +
|  494
 
|-  
 
|-  
 
|  set_screen_mode.c  
 
|  set_screen_mode.c  
 
|  49  
 
|  49  
86
+
75
 +
|  80
 
|-  
 
|-  
 
|  set_sprite_x.c  
 
|  set_sprite_x.c  
 
|  66  
 
|  66  
158
+
152
 +
|  128
 
|-  
 
|-  
 
|  z88dk-mktime.c  
 
|  z88dk-mktime.c  
 
|  239  
 
|  239  
638
+
618
 +
|  603
 
|-  
 
|-  
 
|  total  
 
|  total  
x
+
1563
x
+
3609
 +
|  3142
 
|}
 
|}
  

Revision as of 14:32, 30 April 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-stm8 #8586
cvu_vinb.c 7 15 15
galois_lfsr.c 21 34 32
get_tile.c 95 129 120
huffman_iterative.c 161 323 288
huffman_recursive.c 198 358 306
init_loop.c 33 69 54
insertion_sort.c 108 247 191
memcpy_compression.c 31 93 77
memtovmemcpy.c 30 101 86
play_music.c 393 721 669
sdcc_mullong.c 132 673 494
set_screen_mode.c 49 75 80
set_sprite_x.c 66 152 128
z88dk-mktime.c 239 618 603
total 1563 3609 3142


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