From owner-freebsd-ppc Sat Aug 17 17: 1:41 2002 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 42FA037B400 for ; Sat, 17 Aug 2002 17:01:40 -0700 (PDT) Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5905B43E3B for ; Sat, 17 Aug 2002 17:01:39 -0700 (PDT) (envelope-from dje@watson.ibm.com) Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57]) by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g7I01UF12694; Sat, 17 Aug 2002 20:01:30 -0400 Received: from makai.watson.ibm.com (makai.watson.ibm.com [9.2.216.144]) by sp1n293en1.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g7I01UV107006; Sat, 17 Aug 2002 20:01:30 -0400 Received: from watson.ibm.com (localhost [127.0.0.1]) by makai.watson.ibm.com (AIX4.3/8.9.3/8.9.3/01-10-2000) with ESMTP id UAA09144; Sat, 17 Aug 2002 20:01:23 -0400 Message-Id: <200208180001.UAA09144@makai.watson.ibm.com> To: Joshua LeVasseur Cc: freebsd-ppc@FreeBSD.ORG Subject: Re: freebsd-ppc: gcc's SysV ABI and parameter passing In-Reply-To: Message from Joshua LeVasseur of "17 Aug 2002 22:29:44 +0200." <1029616185.9422.427.camel@i30pc32> Date: Sat, 17 Aug 2002 20:01:23 -0400 From: David Edelsohn Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> Joshua LeVasseur writes: Joshua> I think that this aspect of the SysV calling convention is really bad. Joshua> If a data-type is 32-bits (whether or not it is expressed as a structure Joshua> in the high level language), it should be passed by register when passed Joshua> by value. Yes, the 32-bit PowerPC SVR4 ABI is rather inefficient in some areas. You can thank Sun for that part of the ABI. This is one reason that the 64-bit PowerPC SVR4 ABI is not an extension of the 32-bit PowerPC SVR4 ABI (I'm not saying the 64-bit ABI is perfect either, we made compromises). However, the 32-bit SVR4 ABI is the official, standard ABI. Making private modification is arrogant and creates unnecessary differences with user applications and standard tools. Hopefully everyone learned enough from the Unix wars to not go down that road. David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message