caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeremie Dimino <jdimino@janestreet.com>
To: Christopher Yocum <cyocum@gmail.com>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Ocaml 4.02.0: Dead Code Elimination and Core
Date: Mon, 1 Sep 2014 14:14:28 +0100	[thread overview]
Message-ID: <CANhEzE7uUuDTdVRC2PVtB21-gtLZxLh_LQPUucdt8LQTFhCr1A@mail.gmail.com> (raw)
In-Reply-To: <CAJt-9tzifry65vt526_BGtLqmiiO6UOj10CfxW8xS=WOgrwUxg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

Hi Christopher,

On Mon, Sep 1, 2014 at 1:58 PM, Christopher Yocum <cyocum@gmail.com> wrote:

> I saw that there is dead code elimination in 4.02.0 and I thought to
> myself that this would help make Core's very large binaries smaller.  So, I
> switch compilers and did a test.  Unfortunately, a small sample program
> compiled with ocamlopt and using Core.Std.List was still 11MB.  I very much
> doubt that my binary really needs to be 11MB.  Is there a way to shrink the
> size?  I had heard about namesapces elsewhere before but I think that
> discussion died.
>

AFAIK 4.02 doesn't do much more dead code elimination than 4.01. There is
an entry about dead code elimination in the changelog but it is a local
optimization that is unlikely to change the size of binaries much.

However there is a new feature of 4.02 that will help reduce the size of
binaries using Core: module aliases. Core will have to be updated to take
advantage of it. We are hopping to release a new version of Core using
module aliases soon.

-- 
Jeremie

[-- Attachment #2: Type: text/html, Size: 1533 bytes --]

  reply	other threads:[~2014-09-01 13:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01 12:58 Christopher Yocum
2014-09-01 13:14 ` Jeremie Dimino [this message]
2014-09-01 16:57   ` Chris Yocum
2014-09-04 15:03   ` Goswin von Brederlow
2014-09-05 20:55     ` Jacques Garrigue

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=CANhEzE7uUuDTdVRC2PVtB21-gtLZxLh_LQPUucdt8LQTFhCr1A@mail.gmail.com \
    --to=jdimino@janestreet.com \
    --cc=caml-list@inria.fr \
    --cc=cyocum@gmail.com \
    /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).