From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roland Orre Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: 64bit guile: one bug found, one improvement suggested Date: Wed, 27 Jul 2005 02:42:29 +0200 Message-ID: <1122424950.8714.138.camel@bari.bacon.su.se> References: <873bq1gn15.fsf@zagadka.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122468519 17236 80.91.229.2 (27 Jul 2005 12:48:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2005 12:48:39 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jul 27 14:48:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DxlK0-0001Hu-L7 for guile-user@m.gmane.org; Wed, 27 Jul 2005 14:47:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DxlMP-0001hj-1F for guile-user@m.gmane.org; Wed, 27 Jul 2005 08:50:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DxaSy-0007oY-7q for guile-user@gnu.org; Tue, 26 Jul 2005 21:12:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DxaSx-0007oF-Ii for guile-user@gnu.org; Tue, 26 Jul 2005 21:12:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DxaRN-00077x-P6; Tue, 26 Jul 2005 21:10:33 -0400 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DxaBb-00074F-Q5; Tue, 26 Jul 2005 20:54:16 -0400 Original-Received: from c640 ([213.114.35.148] [213.114.35.148]) by mxfep02.bredband.com with ESMTP id <20050727004300.GSYJ6295.mxfep02.bredband.com@c640>; Wed, 27 Jul 2005 02:43:00 +0200 Original-To: guile-devel@gnu.org, guile-user@gnu.org In-Reply-To: <873bq1gn15.fsf@zagadka.de> X-Mailer: Evolution 2.2.1.1 X-Mailman-Approved-At: Wed, 27 Jul 2005 08:50:02 -0400 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:4654 gmane.lisp.guile.devel:5173 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:5173 The (small) bug may be corrected in later version (I'm still using the old style (early 1.7) uniform arrays). The improvement suggested below is actually part of a general 32/64 bit problem. bug: size of scm_tc7_ivect and scm_tc7_uvect is long, but should be int. causes: on 64 bit machine, there are no 32 bit int vectors available. (I've fixed this locally) improvement suggestion: size of SCM should be configurable to 32 bit on 64 bit machine. As it is now, it causes a lot of wasted memory and I guess also unnecessary usage of memory band width. This is a somewhat bigger change as most addressing needs to be base relative. I guess there are utilites available to allocate memory within certain (e.g. 32 bit) boundaries, (there was in VMS I used once) but haven't found any in GNU/Linux, apart from possibly start in mmap. Maybe even gcc provides a nice solution to this, but haven't found anything (someth like: short pointer and long pointer which I think I've seen in some languages long time ago). /Roland Orre _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user