SPARC Architecture:
Registers, Pipelining



SPARC Registers -- global, out



SPARC Registers -- local, in



32-bit registers



using the assembler

Note: this differs from book



as

: the assembler



example

        .global main
main:  save    
        add     
        sub     
.global and .word are pseudo-ops



instructions



instruction execution: pipelining



pipelining problem: branches



example program

x = 9, y = ((x - 1)(x - 7) / (x - 11))
...
        .global main
main:   save    
        mov     9, 
        sub     
        sub     
        call    .mul
        nop
        sub     
        call    .div
        nop
        mov     
        mov     1, 
        ta      0