From: Jacques-Henri Jourdan <jacques-henri.jourdan@ens.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Two questions on the OCAML runtime system and compiler,
Date: Mon, 30 Sep 2013 16:08:55 +0200 [thread overview]
Message-ID: <524985F7.8020508@ens.fr> (raw)
In-Reply-To: <alpine.DEB.2.02.1309302142220.26855@pl.postech.ac.kr>
>
> Question 2.
>
> On a 64-bit system, can we safely get rid of the page table, in
> particular
> caml_page_table_lookup(), if the header of each block is redesigned to
> include
> a field indicating which memory area it resides (old heap, young heap,
> static
> data, etc)? I wonder what other purposes the page table serves, other
> than
> determining the memory area for a given pointer.
The OCaml runtime is designed so that pointers in the heap can point to
objects outside the OCaml heap, as long as they are 2-aligned. That is,
bindings for C libraries are allowed to return C pointers (eg. allocated
using malloc) as OCaml values. However, I do not know how many actual
bindings make use of this feature.
--
JHJ
next prev parent reply other threads:[~2013-09-30 14:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-30 12:43 Sungwoo Park
2013-09-30 13:24 ` Leo White
2013-09-30 14:23 ` Yotam Barnoy
2013-09-30 14:39 ` Yotam Barnoy
2013-09-30 14:08 ` Jacques-Henri Jourdan [this message]
[not found] ` <138054732239801.04758.localhost@localhost>
2013-10-01 3:30 ` Sungwoo Park
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=524985F7.8020508@ens.fr \
--to=jacques-henri.jourdan@ens.fr \
--cc=caml-list@inria.fr \
/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