March 29, 2004 01:44 AM Closer.

        .file "test/code/simple_assignment.ada"
        .global main
main:
        save    %sp, -96, %sp
        sub     %sp, 4, %sp
        mov     10, %r16
        sub     %fp, 0, %r17
        st      %r16, [%r17]
        mov     20, %r16    
        sub     %fp, 0, %r17
        st      %r16, [%r17]
        nop
        ret
        restore

Assembly has never looked so good.

Comments on Closer.

What does it do? Save space on the stack for a variable, x. Assign x the value 10. Assign x the value 20. Quit.

[Posted by ramanan on March 29, 2004 01:53 AM]

you're a geek! :P

[Posted by sh!ma on March 29, 2004 12:19 PM]
Don't copy me without asking.     moveable type     1and1     XHTML     XFN     CSS.     ramanan at funkaoshi dot com.