From owner-freebsd-sparc Mon Dec 14 16:04:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA05532 for freebsd-sparc-outgoing; Mon, 14 Dec 1998 16:04:00 -0800 (PST) (envelope-from owner-freebsd-sparc@FreeBSD.ORG) Received: from fep02-svc.tin.it (mta02-acc.tin.it [212.216.176.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA05248 for ; Mon, 14 Dec 1998 16:03:47 -0800 (PST) (envelope-from paipai@box4.tin.it) Received: from winworkstation ([212.216.235.33]) by fep02-svc.tin.it (InterMail v4.0 201-221-105) with SMTP id <19981215000328.FASH18170.fep02-svc@winworkstation>; Tue, 15 Dec 1998 01:03:28 +0100 Comments: Authenticated sender is From: "Paolo Di Francesco" To: Alfred Perlstein , freebsd-sparc@FreeBSD.ORG Date: Tue, 15 Dec 1998 01:06:50 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Experiments... References: <19981214141012.BSNL18170.fep02-svc@winworkstation> In-reply-to: X-mailer: Pegasus Mail for Win32 (v2.53/R1) Message-Id: <19981215000328.FASH18170.fep02-svc@winworkstation> Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Ok, this is not a tecnical prob, the tecnical ones are: > > > > 1) I have compiled binutils with sparc64-elf, is this right? Have I to use > > sparc-aout? > > > > no, you are correct, our target is sparc64-elf, not aout. aout is dead, > long live elf. > Ok. Only elf stuff 8) > > 2) I'll try to compile egcs with same flags in 1) > > this is a pain, you'll need to set your path to the bin-util's bin > directory, you'll also have to compile like so: > > (this assumes you configured with --prefix=/usr/local/sparc64) > > export C_INCLUDE_DIR=/usr/include > export LD_LIBRARY_PATH=/usr/local/sparc64/sparc64-elf/bin > export PATH=/usr/local/sparc64/sparc64-elf/bin:/usr/local/sparc64/bin > > gmake LANGUAGES="c c++" > I'll try... > hopefully that'll work, however you'll be generating invalid elf binaries > without Kapil Chowksey's and my patches. i still haven't exactly decided > on what to use for our compiler, i'm temped to use egcs-current as > supposedly the sparc back end is way better, however egcs1.1.1 is now > supposedly branded "stable" moving between revisions shouldn't be too bad. I'll upload everything to that site (see below). Examples, and what I have from my toolchain. So everyone can compare... Please download them and let me know if you have same code (.o and .S) ;) > > My idea is to have 2 toolchains. The first one to test "compiler" and > > the second one to use it on code. We don't know much about > > egcs/gcc/etc. so I thought to test compiler/toolchain on a usable > > platform (Solaris). This mean the first toolchain (I called it > > SolarSystem) must be used _only_ to test the compiler, and the second > > one (EatIt) must be used to do our test when SolarSystem works. > > this is less of an issue than just getting code done. :) there are > workarounds for invalid asm code. moving between revisions of egcs to get > correct code will stink but they already test their own work, we shouldn't > need/try to duplicate their efforts. > I hope egcs 1.1.1 is good enough to do experiments, and to compile it. In the meantime, I hope egcs 2.0 or 1.2 will be out soon. > > > > Now, I don't know if we can build Sparc64 bins under solaris, and what > > to do to build the right toolchain. > > > > About test programs. I'm preparing some test programs. The first is something > > like "do-nothing". No output, no input. After that I'll do more complicated > > programs (math progs, and input/output, etc...). > > i have generated .o files (gcc -c) and .S files (gcc -S) with egcs, they > look "ok" the only problem is that they aren't branded correctly to be > linked into solaris binaries. Basically i haven't been able to use > solaris 'ld' to link my generated binaries with native compiled binaries. > what does it tell you? Core? Cannot link? Wrong object? What? If you have a solaris7 compiler (64bit), you can do this: 1) try to assembly the .S file (does it work? Dunno) 2) try to compare .S from toolchain and from Sun's compiler. 3) try to compile binutils under solaris and then try to assembly the .S code from the toolchain. 4) build the whole compiler/binutils under solaris. Can this be of some help? if you haven't a compiler under Solaris, you can do some crosscompiling. But I don't know how to do it... This seems to be the less stable process. (build a native solaris compiler under FreeBSD/Intel) Maybe this can help. 8) (or, maybe these are stupids suggestions) > This doesn't mean that the code is bad, just that i have to play with the > objformat stuff more. Hum....BFD? (see the old thread about BFD) > Also, i'm unsure of what ABI we will follow. I have a sol-7 box and > strangly enough all the shared objects test out to be 32bit, this isn't > our goal, 64 bit is. > > > > > Suggestions? > > > > *head scratch* > > i'm trying to merge in Kapil's kernel work into the tree i have at home... > have you downloaded it? > No. Tonight I will download it... 8) 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