.section ".text",#alloc,#execinstr .align 8 .skip 16 ! block 0 .global main .type main,2 main: save %sp,-112,%sp ! block 1 .L90: .L91: ! File test.c: ! 1 #include ! 2 ! 3 int main() { ! 4 ! 5 int x,y,z; ! 6 printf("Enter two numbers -> "); sethi %hi(.L93),%o0 or %o0,%lo(.L93),%o0 call printf nop ! 7 scanf("%d %d",&x, &y); sethi %hi(.L94),%o0 or %o0,%lo(.L94),%o0 add %fp,-8,%o1 call scanf add %fp,-12,%o2 ! 8 z = x + y; ld [%fp-8],%l0 ld [%fp-12],%l1 add %l0,%l1,%i5 ! 9 printf("The sum is %d\n",z); sethi %hi(.L95),%o0 or %o0,%lo(.L95),%o0 call printf mov %i5,%o1 jmp %i7+8 restore ! block 2 .L89: jmp %i7+8 restore .size main,(.-main) .align 8 .section ".rodata1",#alloc .align 4 .L93: .ascii "Enter two numbers -> \000" .skip 2 .type .L93,#object .size .L93,24 .align 4 .L94: .ascii "%d %d\000" .skip 2 .type .L94,#object .size .L94,8 .align 4 .L95: .ascii "The sum is %d\n\000" .type .L95,#object .size .L95,15 .section ".bss",#alloc,#write Bbss.bss: .skip 0 .type Bbss.bss,#object .size Bbss.bss,0 .section ".data",#alloc,#write Ddata.data: .skip 0 .type Ddata.data,#object .size Ddata.data,0 .section ".rodata",#alloc Drodata.rodata: .skip 0 .type Drodata.rodata,#object .size Drodata.rodata,0 .file "test.c" .xstabs ".stab.index","V=8.0;DBG_GEN=4.0.145;Xa;R=Forte Developer 7 C 5.4 Patch 111708-07 2003/06/19",60,0,0,1068139037 .xstabs ".stab.index","/users3/sdexter/CoreExample; /opt/SUNWspro/bin/../prod/bin/cc -S test.c",52,0,0,0 .xstabs ".stab.index","main",42,0,0,0 .ident "@(#)stdio.h 1.78 99/12/08 SMI" .ident "@(#)stdio_iso.h 1.2 99/10/25 SMI" .ident "@(#)feature_tests.h 1.18 99/07/26 SMI" .ident "@(#)isa_defs.h 1.20 99/05/04 SMI" .ident "@(#)va_list.h 1.12 99/05/04 SMI" .ident "@(#)stdio_tag.h 1.3 98/04/20 SMI" .ident "@(#)stdio_impl.h 1.8 99/06/10 SMI" .ident "acomp: Forte Developer 7 C 5.4 Patch 111708-07 2003/06/19" .global __fsr_init_value __fsr_init_value = 0x0