A stack-based internal representation for GCC

Gabriele Svelto 1 Andrea 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.
Type de document :
Communication dans un congrès
First International Workshop on GCC Research Opportunities, Jan 2009, Paphos, Cyprus. 2009
Liste complète des métadonnées

https://hal.inria.fr/hal-00781561
Contributeur : Erven Rohou <>
Soumis le : dimanche 27 janvier 2013 - 21:44:47
Dernière modification le : mercredi 16 mai 2018 - 11:23:28
Document(s) archivé(s) le : dimanche 28 avril 2013 - 03:52:15

Fichier

04-StackIR-Rohou.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-00781561, version 1

Citation

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

Partager

Métriques

Consultations de la notice

459

Téléchargements de fichiers

156