A stack-based internal representation for GCC - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Communication Dans Un Congrès Année : 2009

A stack-based internal representation for GCC

Résumé

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.

Domaines

Autre [cs.OH]
Fichier principal
Vignette du fichier
04-StackIR-Rohou.pdf (192.69 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-00781561 , version 1 (27-01-2013)

Identifiants

  • HAL Id : hal-00781561 , version 1

Citer

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⟩
231 Consultations
152 Téléchargements

Partager

Gmail Facebook X LinkedIn More