caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "David Brown" <caml@davidb.org>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>, caml-list@inria.fr
Subject: Re: [Caml-list] Re: 32- and 64-bit performance
Date: Sat, 02 Apr 2005 12:50:35 -0800	[thread overview]
Message-ID: <opsomhiln2ho2unb@a64.davidb.org> (raw)
In-Reply-To: <87zmwh3p8m.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org>

On Sat, 02 Apr 2005 15:23:21 -0500, Stefan Monnier  
<monnier@iro.umontreal.ca> wrote:

> Under Alpha they called it "taso".  Mostly used for compatibility with  
> apps
> that were assuming the size of ptrs is the same as the size of int: it  
> just
> made the C library use only the bottom 4GB of the address space such that
> the compiler could use only 32bit to store pointer values.

The default mode in gcc for amd64 is almost this (-mcmodel=small).  It  
assumes pointers live in the lower 2GB of address space, but 'sizeof (void  
*)' is still 8.  I'm not sure why the small model doesn't use 32-bit  
pointers.

The -mcmodel=medium model does 64-bit operations on pointers, but the code  
must still live in the lower 2GB of address space.

The -mcmodel=large isn't yet implemented.

Dave


  reply	other threads:[~2005-04-02 20:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30  2:40 Jon Harrop
2005-03-30  7:46 ` [Caml-list] " Alex Baretta
2005-03-30  8:00   ` Ville-Pertti Keinonen
2005-03-30  8:41     ` Alex Baretta
2005-03-30  9:01       ` Ville-Pertti Keinonen
2005-03-30 12:53         ` Jon Harrop
2005-03-30 14:34           ` Ville-Pertti Keinonen
2005-03-30  8:10   ` Robert Roessler
2005-03-30  8:11   ` Alexander S. Usov
2005-03-30 13:46 ` Eijiro Sumii
2005-03-31 13:42   ` Jon Harrop
2005-03-31 15:05 ` Stefan Monnier
2005-03-31 18:40   ` [Caml-list] " Jon Harrop
2005-03-31 22:41     ` Richard Jones
2005-04-02 20:23     ` Stefan Monnier
2005-04-02 20:50       ` David Brown [this message]
2005-04-03 10:01         ` [Caml-list] " Ville-Pertti Keinonen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=opsomhiln2ho2unb@a64.davidb.org \
    --to=caml@davidb.org \
    --cc=caml-list@inria.fr \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).