From owner-freebsd-ppc@FreeBSD.ORG Thu Jun 2 18:23:05 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD33416A41C for ; Thu, 2 Jun 2005 18:23:05 +0000 (GMT) (envelope-from toa@pop.agri.ch) Received: from smtp.messaging.ch (exsmtp01.agrinet.ch [81.221.250.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5643143D5C for ; Thu, 2 Jun 2005 18:23:04 +0000 (GMT) (envelope-from toa@pop.agri.ch) Received: from [192.168.225.5] ([80.218.0.93]) by smtp.messaging.ch with Microsoft SMTPSVC(6.0.3790.211); Thu, 2 Jun 2005 20:23:03 +0200 Message-ID: <429F4E83.8080208@pop.agri.ch> Date: Thu, 02 Jun 2005 20:22:59 +0200 From: Andreas Tobler User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: peterg@ptree32.com.au References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Jun 2005 18:23:03.0440 (UTC) FILETIME=[1D540100:01C567A0] Cc: freebsd-ppc@freebsd.org Subject: Re: calling/runtime convention for ppc fbsd X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 18:23:06 -0000 Hi Peter, peterg@ptree32.com.au wrote: >>which caling / runtime convention does fbsd ppc follow? The sysv4 from >>SUN dated around september 1995? Or is it another one? > > > That's the one. Ok. >>Does/should it follow this convention without any exceptions? > > > The one exception is that long doubles are 64-bit and not 128-bit. > OSX/NetBSD/Linux on powerpc all use 64-bit long doubles, so it > didn't seem to make a lot of sense to follow the ABI strictly there. OS-X does support long double with 128-bit :) At least the newer gcc's. The os itself, well another question. Anyway, my reason for this question is simple, if it is the ABI above then I expect that structure passing etc. should behave the same way on linux ppc 32-bit and freebsd 32-bit, right? Hm, if the answer is yes, then I feel that we have some bits missing on the fbsd gcc. (I always talk about gcc-head, otherwise I'd reference a version) Ok. I look into the sources then. Thanks, Andreas