Title :
Model-Based Function Call Code Generation and Stack Management in Retargetable Compilers: Application Binary Interface Modeling of Stack Layout and Function Call Sequence
Author_Institution :
CodeWarrior Compiler, Freescale Semicond. Romania, Bucharest, Romania
Abstract :
This paper presents a way of modeling the application binary interface aspects related to stack layout and function call sequence in the context of code generation and stack management for retargetable compilers (implementation and targeting for new architectures). This paper tries to present a model of stack layout and function call sequences as solution for the problem of efficient code generation related to function calls and stack management without compiler redesign in the context of efficient, architecture specific, non-standardized application binary interfaces. The proposed solution is centered toward the application binary interface model with four components (for description of stack layout, function call scenario, save / restore information around function calls, parameter passing convention) and three methods using this ABI model that are integrated in the retargetable compiler flow (the code generation for prologue / epilogue sequences, the code generation for function calls and parameter passing and the stack management).
Keywords :
program compilers; ABI model; application binary interface aspects modeling; application binary interface modeling; architecture specific application binary interface; epilogue sequence; function call sequence; function calls; model-based function call code generation; nonstandardized application binary interface; parameter passing; prologue sequence; retargetable compiler flow; retargetable compilers; stack layout; stack management; Context; Context modeling; Filling; Indexes; Layout; Program processors; Registers; ABI modeling; code generation; retargetable compiler; stack management;
Conference_Titel :
Control Systems and Computer Science (CSCS), 2015 20th International Conference on
Conference_Location :
Bucharest
Print_ISBN :
978-1-4799-1779-2
DOI :
10.1109/CSCS.2015.38