From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 266C3BC57 for ; Tue, 14 Dec 2010 10:43:41 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswBAC7LBk3ZSMDdkWdsb2JhbACkCxYBAQEJCwoHEQMmwVOFSgSOD4gP X-IronPort-AV: E=Sophos;i="4.59,341,1288566000"; d="scan'208";a="82577399" Received: from fmmailgate01.web.de ([217.72.192.221]) by mail4-smtp-sop.national.inria.fr with ESMTP; 14 Dec 2010 10:43:40 +0100 Received: from smtp08.web.de ( [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 3370F181956B6; Tue, 14 Dec 2010 10:43:40 +0100 (CET) Received: from [78.43.204.177] (helo=frosties.localdomain) by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #24) id 1PSRQ4-00030w-00; Tue, 14 Dec 2010 10:43:40 +0100 Received: from mrvn by frosties.localdomain with local (Exim 4.72) (envelope-from ) id 1PSRQ3-0001Pu-ED; Tue, 14 Dec 2010 10:43:39 +0100 From: Goswin von Brederlow To: John Carr Cc: Benedikt Meurer , caml-list@yquem.inria.fr Subject: Re: Value types References: <201012121920.oBCJKdlV002949@department-of-alchemy.mit.edu> Date: Tue, 14 Dec 2010 10:43:39 +0100 In-Reply-To: <201012121920.oBCJKdlV002949@department-of-alchemy.mit.edu> (John Carr's message of "Sun, 12 Dec 2010 14:20:39 -0500") Message-ID: <87lj3sbsfo.fsf@frosties.localnet> User-Agent: Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: goswin-v-b@web.de X-Sender: goswin-v-b@web.de X-Provags-ID: V01U2FsdGVkX18Io1+vtdfwr5/ON/e38kCz4mW7N6tWQIEkCBVJ y1DHaq5I6J+NfYPqB/ZAcAai9urbt4aIgwaNZ33KHf5hdtiuU4 B6dQbnOEo= X-Spam: no; 0.00; ocaml:01 ocaml:01 transitions:01 pointers:01 mips:01 gcc:01 tso:98 mfg:98 int:01 writes:01 module:03 optimizing:03 jfc:04 types:05 implement:06 John Carr writes: >> I don't see the point of optimizing for x86-32 > > I'm using 32 bit ocaml because my program uses too much memory in 64 > bit mode. If there were an ocaml that used 32 bit words in 64 bit > mode, I would use that instead. > > Early 32 to 64 bit transitions offered 32 bit pointers with 64 bit > registers, called TSO on Alpha and n32 on MIPS. AMD and Intel did not. There is a patch for gcc for this for amd64. It could be nice to implement this for ocaml too. It would mostly improve the Int64 module. But the extra registers in 64bit mode should help performance overall too. MfG Goswin