Binary sizes

Size

Program Size

Tips on reducing program and ram size.
  • strip gives a big benefit
    • -60% in programs
    • -70% in shared library
    • -85% in static library
  • use shared library
    • static is larger
    • strip if must use
    • static if only one program is needed
  • little benefit from configuration options
    • -10% best case
    • lose function, speed
    • --disable-debug for production systems is slightly smaller (-5%)
libow size
 Configuration option SHARED size (K) % SHARED STRIPPED (K) % STATIC size (K) % STATIC STRIPPED (K) %
Default 1414   447   2774   385  
 --disable-debug (debugging output) 1382 -2 423 -5 2720 -2 362 -6
 --disable-thermocouple (thermocouples) 1382 -2 418 -6 2745 -1 370 -4
 --disable-tai8570 (barometer) 1396 -1 439 -2 2753 -1 380 -1
--disable-mt --disable-owftpd (multithreading, owftpd requires threads) 1387 -2 435 -3 2713 -2 378 -2
 --disable-cache 1380 -2 435 -3 2724 -2 375 -3
--disable-usb 1372 -3 431 -4 2705 -2 371 -4
--disable-ha7 1380 -2 439 -2 2708 -2 378 -2
--disable-i2c 1387 -2 429 -4 2729 -2 379 -2
--disable-mt --disable-debug --disable-cache --disable-owftpd 1327 -6 403 -10 2615 -6 346 -10
--enable-profiling 1422 +1 448 0 2806 +1 388 +1
Program size
 Program Size Stripped (% change) % delta
 owfs 45.8K  16.4K -64%
 owftpd  184.3K  56.2K -69%
owhttpd 60.9K 19.6K -67%
owserver 38.5K 15.1K -61%
Platform effect -- libow size
 Platform shared (K) stripped (K) static (K) stripped (K)
 AMD64 1414 447 2773 385
 i586 1082  339 1720 314