Skip to Main content Skip to Navigation
New interface
Conference papers

A stack-based internal representation for GCC

Gabriele Svelto 1 Andrea C. Ornstein 1 Erven Rohou 2 
2 ALF - Amdahl's Law is Forever
Inria Rennes – Bretagne Atlantique , IRISA-D3 - ARCHITECTURE
Abstract : Complex embedded systems have always been heterogeneous, and it is unlikely that this situation will change any time soon. Still, the huge non-recurring engineering cost of silicon products tends to make more parts of embedded systems programmable. Our research proposes to address this complexity through processor virtualization. We decided to rely on the CLI format, and we developed a GCC back-end for it. Even though we were able to generate reasonable code, we noticed that we were lacking some important optimizations that exploit the evaluation stack of the virtual machine. Since GCC internals do not provide any support for stack-based instruction set, we introduced our own. We review the limitations of our previous prototype, and we present the data structures of our internal representation, as well as its API. We also describe a number of optimizations that this representation enabled. To exemplify its convenience, we report the code size improvements we obtained with little effort.
Document type :
Conference papers
Complete list of metadata
Contributor : Erven Rohou Connect in order to contact the contributor
Submitted on : Sunday, January 27, 2013 - 9:44:47 PM
Last modification on : Thursday, January 20, 2022 - 4:20:13 PM
Long-term archiving on: : Sunday, April 28, 2013 - 3:52:15 AM


Files produced by the author(s)


  • HAL Id : hal-00781561, version 1


Gabriele Svelto, Andrea C. Ornstein, Erven Rohou. A stack-based internal representation for GCC. First International Workshop on GCC Research Opportunities, Jan 2009, Paphos, Cyprus. ⟨hal-00781561⟩



Record views


Files downloads