Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 1998 03:45:26 +0000
From:      "Paolo Di Francesco" <paipai@tin.it>
To:        freebsd-sparc@FreeBSD.ORG
Subject:   Cross compiled code
Message-ID:  <19981222090251.CUQO18112.fep03-svc@winworkstation>

next in thread | raw e-mail | index | archive | help
Can someone if this code is correct?


----- the original program prova.c (c code) -------


main(){
 int a,b;

 a = 10;
 b = 20 + a;
}

--------------------------------------------

compiled with xgcc -S 

--------------------------------------------
 .file	"prova.c"
.section	".text"
 .align 4
 .global main
 .type	 main,#function
 .proc	04
main:
 !#PROLOGUE# 0
 save %sp,-208,%sp
 !#PROLOGUE# 1
 mov 10,%o0
 st %o0,[%fp+2027]
 ld [%fp+2027],%o0
 add %o0,20,%o1
 st %o1,[%fp+2023]
.LL1:
 return %i7+8
 nop
.LLfe1:
 .size	 main,.LLfe1-main
 .ident	"GCC: (GNU) egcs-2.91.60 19981201 (egcs-1.1.1 release)"

---------------------------------------------------------------

I have linked it and it seems ok.

P.S. host=Linux-RedHat5.0


Ciao Ciao
       Paolo Di Francesco
   _
 ->B<-   All Recycled Bytes Message ...
   ~

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981222090251.CUQO18112.fep03-svc>