Difference between revisions of "Stm8 code size"

From SDCC wiki
Jump to: navigation, search
(sdcc 3.4.0 code size)
m (typo)
 
Line 31: Line 31:
 
|  '''140'''
 
|  '''140'''
 
|  168
 
|  168
1174
+
174
 
|-  
 
|-  
 
|  init_loop.c  
 
|  init_loop.c  

Latest revision as of 17:27, 17 April 2014

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

[edit] STM8 code size comparison (bytes):

File Cosmic C¹ IAR C² sdcc 3.4.0³
cvu_vinb.c 6 6 10
galois_lfsr.c 15 15 12
get_tile.c 89 87 82
huffman_iterative.c 134 171 162
huffman_recursive.c 140 168 174
init_loop.c 24 31 27
insertion_sort.c 92 111 137
memcpy_compression.c 43 54 56
memtovmemcpy.c 44 55 51
play_music.c 354 290 352
sdcc_mullong.c 127 179 352
set_screen_mode.c 49 49 61
set_sprite_x.c 55 65 57
z88dk-mktime.c 221 209 347
total 1393 1490 1880


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

All compilers have been configured for strong optimization for code size.

¹ C Compiler for STM8 (COSMIC Software); Generator V4.3.7; Optimizer V4.3.6. Current version as of mid-2013.

² IAR C/C++ Compiler V1.40.1.50106 for STM8. Current version as of mid-2013.

³ Compiler options --opt-code-size --max-allocs-per-node 10000000

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