From owner-freebsd-hackers Tue Oct 20 08:49:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA28588 for freebsd-hackers-outgoing; Tue, 20 Oct 1998 08:49:09 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA28529 for ; Tue, 20 Oct 1998 08:48:49 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.1/8.9.1/Spinner) with ESMTP id XAA12216; Tue, 20 Oct 1998 23:44:08 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199810201544.XAA12216@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: John Polstra cc: kaleb@ics.com, hackers@FreeBSD.ORG Subject: Re: Producing non-GPLed tools for FreeBSD In-reply-to: Your message of "Tue, 20 Oct 1998 08:13:44 MST." <199810201513.IAA04309@austin.polstra.com> Date: Tue, 20 Oct 1998 23:44:07 +0800 From: Peter Wemm Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra wrote: > In article <362B9D4D.500216A0@ics.com>, > Kaleb S. KEITHLEY wrote: > > > I didn't steal the Intel supplement to the ABI when I left my last job, > > but I don't recall that it specified parameter passing and register > > usage > > Yes, it does specify all of that. And no, we don't differ from it > on our ELF systems (or on our a.out systems either). Actually, there are some differences between us and the rest.. We use a different structure return method in both a.out and our native ELF.. ie: -fno-pcc-struct-return is default on FreeBSD. This means that for us, something like this struct foo func() { struct foo ret; .... return ret; } .. is reentrant as per the original gcc default. gcc changed to default to -fpcc-struct-return relatively late, around 2.4 or 2.5 from memory, and we didn't follow. The pcc method (the AT&T portable C compiler) was to pass around pointers to static data which got trashed on recursion or reuse somehow (eg: signal handler). I do not know if structure returns are part of the Intel ELF ABI or not. > John Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message