From owner-freebsd-alpha@FreeBSD.ORG Thu Jan 8 14:03:23 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0FC816A4CE; Thu, 8 Jan 2004 14:03:23 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA09E43D58; Thu, 8 Jan 2004 14:03:22 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 846C3530C; Thu, 8 Jan 2004 23:03:21 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id D41985308; Thu, 8 Jan 2004 23:03:14 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 95D3B33C9A; Thu, 8 Jan 2004 23:03:14 +0100 (CET) To: John Baldwin References: <200401081542.49500.jhb@FreeBSD.org> <200401081645.24241.jhb@FreeBSD.org> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Thu, 08 Jan 2004 23:03:14 +0100 In-Reply-To: <200401081645.24241.jhb@FreeBSD.org> (John Baldwin's message of "Thu, 8 Jan 2004 16:45:23 -0500") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no version=2.60 cc: alpha@freebsd.org Subject: Re: structure padding X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 22:03:24 -0000 John Baldwin writes: > Actually, why not just use a long for the e_sid instead of pid_t? I got off my fat lazy butt and wrote the following: #include struct foo { int a; long b; }; struct bar { long a[2]; }; int main(void) { printf("%lu, %lu\n", sizeof(struct foo), sizeof(struct bar)); return (0); } On Alpha (-CURRENT, though, not -STABLE) it prints 16 for both structures, so it looks like I don't need any hack at all. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no