EEE@#

EEE# - .section.file"pi.c.text#alloc#execinstr#progbits.section.bss#alloc#write#nobits Bbss.bss.section.data#alloc#write#progbits

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
.section ".text" ,#alloc,#execinstr,#progbits . file "pi.c" .section ".bss" ,#alloc,#write,#nobits Bbss .bss: .section ".data" ,#alloc,#write,#progbits Ddata . data : .section ".rodata" ,#alloc,#progbits ! ! CONSTANT POOL ! Drodata . rodata : .section ".rodata1" ,#alloc,#progbits . align 4 ! ! CONSTANT POOL ! .L102: . ascii "After %d iterations sum = %.8f\n\000" .section ".text" ,#alloc,#execinstr,#progbits /* 000000 0 */ . align 8 ! ! CONSTANT POOL ! ___const_seg_900000103: /* 000000 0 */ . word 1072693248,0 ! 1.0 /* 0x 0008 */ . word 1099421572,0 ! 50,000,000 /* 0x 0010 */ . word 1073741824,0 ! 2.0 /* 0x 0018 */ . word 1074790400,0 /* 0x 0020 */ . word -1074790400,0 /* 0x 0028 0 */ .type ___const_seg_900000103,1 /* 0x 0028 0 */ .size ___const_seg_900000103,(.- ___const_seg_900000103) /* 0x 0028 0 */ . align 32 ! FILE pi.c ! 1 !#include <stdio.h> ! 3 !int ! 4 !main(int argv, char **argc) ! 5 !{ ! ! SUBROUTINE main ! ! OFFSET SOURCE LINE LABEL INSTRUCTION . global main main: /* 000000 5 */ save % sp ,-112, % sp ! 6 ! double i;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
! 7 ! double sum = 0; // Line 7 /* 0x 0004 7 */ fzero % f30 /* 0x 0008 0 */ sethi %hi(___const_seg_900000103+24), % i5 ! 9 ! for(i=1; i<50000000;) // Line 9 /* 0x 000c 9 */ ldd [ % i5 +%lo(___const_seg_900000103+24)], % f20 /* 0x 0010 0 */ add % i5 ,%lo(___const_seg_900000103+24), % i1 /* 0x 0014 9 */ ldd [ % i1 -24], % f16 ! 1.0 /* 0x 0018 */ ldd [ % i1 -8], % f18 ! 2.0 /* 0x 001c */ ldd [ % i1 -16], % f22 ! 50,000,000 /* 0x 0020 12 */ ldd [ % i1 -24], % f24 ! 1.0 ! 10 ! { ! 11 ! sum = sum + 4.0 / i; i += 2; // Line 11 /* 0x 0024 11 */ faddd % f16 , % f18 , % f10 ! Registers live out of main: ! o1 sp i0 i1 fp i7 gsr ! f10 f11 f16 f17 f18 f19 f20 f21 f22 f23 f24 f25 f30 f31 ! 12 ! sum = sum - 4.0 / i;
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/18/2011 for the course EE 4720 taught by Professor Staff during the Spring '08 term at LSU.

Page1 / 4

EEE# - .section.file"pi.c.text#alloc#execinstr#progbits.section.bss#alloc#write#nobits Bbss.bss.section.data#alloc#write#progbits

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online