Difference between revisions of "Stm8 code size"

From SDCC wiki
Jump to: navigation, search
(STM8 code size comparison (bytes):)
Line 7: Line 7:
 
! sdcc-stm8 #8537
 
! sdcc-stm8 #8537
 
! sdcc-stm8 #8586
 
! sdcc-stm8 #8586
 +
! sdcc-stm8 #8702
 
|-  
 
|-  
 
|  cvu_vinb.c  
 
|  cvu_vinb.c  
 
|  7  
 
|  7  
 +
|  15
 
|  15
 
|  15
 
|  15
 
|  15
Line 17: Line 19:
 
|  34
 
|  34
 
|  32
 
|  32
 +
|  34
 
|-  
 
|-  
 
|  get_tile.c  
 
|  get_tile.c  
Line 22: Line 25:
 
|  129
 
|  129
 
|  120
 
|  120
 +
|  113
 
|-  
 
|-  
 
|  huffman_iterative.c  
 
|  huffman_iterative.c  
Line 27: Line 31:
 
|  323
 
|  323
 
|  288
 
|  288
 +
|  224
 
|-  
 
|-  
 
|  huffman_recursive.c  
 
|  huffman_recursive.c  
Line 32: Line 37:
 
|  358
 
|  358
 
|  306
 
|  306
 +
|  265
 
|-  
 
|-  
 
|  init_loop.c  
 
|  init_loop.c  
Line 37: Line 43:
 
|  69
 
|  69
 
|  54
 
|  54
 +
|  48
 
|-  
 
|-  
 
|  insertion_sort.c  
 
|  insertion_sort.c  
 
|  108  
 
|  108  
 
|  247
 
|  247
 +
|  191
 
|  191
 
|  191
 
|-  
 
|-  
Line 47: Line 55:
 
|  93
 
|  93
 
|  77
 
|  77
 +
|  72
 
|-  
 
|-  
 
|  memtovmemcpy.c  
 
|  memtovmemcpy.c  
 
|  30  
 
|  30  
 
|  101
 
|  101
 +
|  86
 
|  86
 
|  86
 
|-  
 
|-  
Line 57: Line 67:
 
|  721
 
|  721
 
|  669
 
|  669
 +
|  552
 
|-  
 
|-  
 
|  sdcc_mullong.c  
 
|  sdcc_mullong.c  
Line 62: Line 73:
 
|  673
 
|  673
 
|  494
 
|  494
 +
|  381
 
|-  
 
|-  
 
|  set_screen_mode.c  
 
|  set_screen_mode.c  
Line 67: Line 79:
 
|  75
 
|  75
 
|  80
 
|  80
 +
|  63
 
|-  
 
|-  
 
|  set_sprite_x.c  
 
|  set_sprite_x.c  
Line 72: Line 85:
 
|  152
 
|  152
 
|  128
 
|  128
 +
|  117
 
|-  
 
|-  
 
|  z88dk-mktime.c  
 
|  z88dk-mktime.c  
Line 77: Line 91:
 
|  618
 
|  618
 
|  603
 
|  603
 +
|  528
 
|-  
 
|-  
 
|  total  
 
|  total  
Line 82: Line 97:
 
|  3609
 
|  3609
 
|  3142
 
|  3142
 +
|  2689
 
|}
 
|}
  

Revision as of 03:56, 3 June 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 sdcc-stm8 #8702
cvu_vinb.c 7 15 15 15
galois_lfsr.c 21 34 32 34
get_tile.c 95 129 120 113
huffman_iterative.c 161 323 288 224
huffman_recursive.c 198 358 306 265
init_loop.c 33 69 54 48
insertion_sort.c 108 247 191 191
memcpy_compression.c 31 93 77 72
memtovmemcpy.c 30 101 86 86
play_music.c 393 721 669 552
sdcc_mullong.c 132 673 494 381
set_screen_mode.c 49 75 80 63
set_sprite_x.c 66 152 128 117
z88dk-mktime.c 239 618 603 528
total 1563 3609 3142 2689


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