HIGH MEMORY +---------------+ | | | stack | | | v | | | +---------------+ | | | ^ | | heap | | | | +---------------+ | bss | +---------------+ | data | +---------------+ LOW MEMORY | text | +---------------+
========> hello.c <========
main()
{
printf("Hello world!\n");
}
========> part of crt1.s <========
.globl printf
.ent printf
printf:
li t0,TBLBASE+20
lw t0,(t0)
j t0
.end printf
Where TBLBASE is 0xa0c00200 for the ATMizer, and 0xbfc00200 for
all other processors.The file crt1.s allows a client program to access a number of target-dependent services provided by the PROM Monitor. The linkage mechanism for all these services is the vector table.