gccint: Stack Registers
1
1 18.7.5 Registers That Form a Stack
1 ----------------------------------
1
1 There are special features to handle computers where some of the
1 "registers" form a stack. Stack registers are normally written by
1 pushing onto the stack, and are numbered relative to the top of the
1 stack.
1
1 Currently, GCC can only handle one group of stack-like registers, and
1 they must be consecutively numbered. Furthermore, the existing support
1 for stack-like registers is specific to the 80387 floating point
1 coprocessor. If you have a new architecture that uses stack-like
1 registers, you will need to do substantial work on 'reg-stack.c' and
1 write your machine description to cooperate with it, as well as defining
1 these macros.
1
1 -- Macro: STACK_REGS
1 Define this if the machine has any stack-like registers.
1
1 -- Macro: STACK_REG_COVER_CLASS
1 This is a cover class containing the stack registers. Define this
1 if the machine has any stack-like registers.
1
1 -- Macro: FIRST_STACK_REG
1 The number of the first stack-like register. This one is the top
1 of the stack.
1
1 -- Macro: LAST_STACK_REG
1 The number of the last stack-like register. This one is the bottom
1 of the stack.
1