METHOD AND APPARATUS FOR BUILDING CALLING CONVENTION PROLOG AND EPILOG CODE USING A REGISTER ALLOCATOR
Patent №
US 6,408,433
Granted
2002-06-18
Filed 1999
Owner
SUN MICROSYSTEMS, INC
Lab
—
AI components
1
hardware
Assignment
Recorded
Dataset
AIPD
2023_r1 edition
Application
09298411
Methods and apparatus for enabling a register allocator to build a calling convention are disclosed. According to one aspect of the present invention, a computer-implemented method for generating code associated with a calling convention includes obtaining compilable source code, and identifying at least one argument associated with the calling convention. The location of the argument with respect to memory space is described by a register mask. The method also includes performing a register allocation using a register allocator that is arranged to allocate registers. During the register allocation, code associated with the calling convention is produced automatically by the spill-code mechanism in the allocator without requiring the use of a specialized prolog or epilog code generator.
AI classification
Ownership
SUN MICROSYSTEMS, INC
assignment · 99050243