Reducing program image size by extracting frozen code and data

Daniel Citron, Gadi Haber, Roy Levin

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

4 Scopus citations

Abstract

Constraints on the memory size of embedded systems require reducing the image size of executing programs. Common techniques include code compression and reduced instruction sets. We propose a novel technique that eliminates large portions of the executable image without compromising execution time (due to decompression) or code generation (due to reduced instruction sets). Frozen code and data portions are identified using profiling techniques and removed from the loadable image. They are replaced with branches to code stubs that load them in the unlikely case that they are accessed. The executable is sustained in a runnable mode. Analysis of the frozen portions reveals that most are error and uncommon input handlers. Only a minority of the code (less than 1%) that was identified as frozen during a training run, is also accessed with production datasets. The technique was applied on three benchmark suites (SPEC CINT2000, SPEC CFP2000, and MediaBench) and results in image size reductions of up to 73%, 92%, and 85% per suite, The average reductions are 59%, 79%, and 78% per suite.

Original languageEnglish
Title of host publicationEMSOFT 2004 - Fourth ACM International Conference on Embedded Software
Pages297-305
Number of pages9
DOIs
StatePublished - 2004
Externally publishedYes
EventEMSOFT 2004 - Fourth ACM International Conference on Embedded Software - Pisa, Italy
Duration: 27 Sep 200429 Sep 2004

Publication series

NameEMSOFT 2004 - Fourth ACM International Conference on Embedded Software

Conference

ConferenceEMSOFT 2004 - Fourth ACM International Conference on Embedded Software
Country/TerritoryItaly
CityPisa
Period27/09/0429/09/04

Keywords

  • Feedback directed
  • Frozen code
  • Frozen data
  • Image size

ASJC Scopus subject areas

  • General Engineering

Fingerprint

Dive into the research topics of 'Reducing program image size by extracting frozen code and data'. Together they form a unique fingerprint.

Cite this