From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5ae212d006c8c514c89c49f0258ebd36@vitanuova.com> To: russcox@gmail.com, 9fans@cse.psu.edu Subject: Re: [9fans] am I nuts? does 8c support packed structs? From: C H Forsyth Date: Fri, 22 Oct 2004 16:49:31 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-gqphxrawyzzopeipwscneimrhz" Cc: Topicbox-Message-UUID: f3a8040c-eacd-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-gqphxrawyzzopeipwscneimrhz Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit hj were only dicks on the mips it seems, but it's easy to add it to 8c. diff /n/dump/2004/1022/sys/src/cmd/8c/swt.c /sys/src/cmd/8c/swt.c 589a590,591 > if(hjdickflg) > w = hjdickflg; 597a600,601 > if(hjdickflg) > w = hjdickflg; t.c: #include #pragma hjdicks dick struct a { ulong x; long y; short z; }; #pragma hjdicks off static int xxx = sizeof(struct a); static struct a xx[2]; static int xxsize = sizeof(xx); 8c -S t.c DATA xxx<>+0(SB)/4,$10 DATA xxsize<>+0(SB)/4,$20 GLOBL xxsize<>+0(SB),$4 GLOBL xx<>+0(SB),$20 GLOBL xxx<>+0(SB),$4 perhaps i should add "xen" as a synonym for "dick" "on" will work too, if you'd like to be less rude. also, #pragma hjdicks xN for some integer N sets the padding/rounding to N --upas-gqphxrawyzzopeipwscneimrhz Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by doppio; Fri Oct 22 16:37:23 BST 2004 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 175F0C6A9D for ; Fri, 22 Oct 2004 11:30:57 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 34CBD63C18 for <9fans@cse.psu.edu>; Fri, 22 Oct 2004 11:30:24 -0400 (EDT) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27129-01-54 for <9fans@cse.psu.edu>; Fri, 22 Oct 2004 11:30:23 -0400 (EDT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id EEC1A63B1D for <9fans@cse.psu.edu>; Fri, 22 Oct 2004 11:30:22 -0400 (EDT) Received: by rproxy.gmail.com with SMTP id 79so147534rnk for <9fans@cse.psu.edu>; Fri, 22 Oct 2004 08:30:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=OVd9wktyUGSVQQYt5j3/VfMvwhzhEGTqtd3beT/+dTJm3UgBNKDf6FthwiSnj/xIW3eDCNFGs/TRnD5P8j0driyABnU0V9011Wru6L4jUTc2YruAY7J6bPoyFVl0IJHprp1Xbz/ppRVTcBI57YFBCPvGEhCS5c88xgK50dFsx/8= Received: by 10.38.74.76 with SMTP id w76mr425536rna; Fri, 22 Oct 2004 08:30:21 -0700 (PDT) Received: by 10.38.65.22 with HTTP; Fri, 22 Oct 2004 08:30:21 -0700 (PDT) Message-ID: Date: Fri, 22 Oct 2004 11:30:21 -0400 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] am I nuts? does 8c support packed structs? In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Russ Cox , Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+forsyth=vitanuova.com@cse.psu.edu Errors-To: 9fans-bounces+forsyth=vitanuova.com@cse.psu.edu #pragma hjdicks on > struct a { > ulong x; > long y; > short z; > }; #pragma hjdicks off --upas-gqphxrawyzzopeipwscneimrhz--