Back to index

glibc  2.9
regdef.h
Go to the documentation of this file.
00001 #ifndef __alpha_regdef_h__
00002 #define __alpha_regdef_h__
00003 
00004 #define v0    $0     /* function return value */
00005 
00006 #define t0    $1     /* temporary registers (caller-saved) */
00007 #define t1    $2
00008 #define t2    $3
00009 #define t3    $4
00010 #define t4    $5
00011 #define t5    $6
00012 #define t6    $7
00013 #define t7    $8
00014 
00015 #define       s0     $9     /* saved-registers (callee-saved registers) */
00016 #define       s1     $10
00017 #define       s2     $11
00018 #define       s3     $12
00019 #define       s4     $13
00020 #define       s5     $14
00021 #define       s6     $15
00022 #define       fp     s6     /* frame-pointer (s6 in frame-less procedures) */
00023 
00024 #define a0    $16    /* argument registers (caller-saved) */
00025 #define a1    $17
00026 #define a2    $18
00027 #define a3    $19
00028 #define a4    $20
00029 #define a5    $21
00030 
00031 #define t8    $22    /* more temps (caller-saved) */
00032 #define t9    $23
00033 #define t10   $24
00034 #define t11   $25
00035 #define ra    $26    /* return address register */
00036 #define t12   $27
00037 
00038 #define pv    t12    /* procedure-variable register */
00039 #define AT    $at    /* assembler temporary */
00040 #define gp    $29    /* global pointer */
00041 #define sp    $30    /* stack pointer */
00042 #define zero  $31    /* reads as zero, writes are noops */
00043 
00044 #endif /* __alpha_regdef_h__ */