Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Giles Constant <giles@spacepigs.com>
To: caml-list@yquem.inria.fr
Subject: Why is ocaml so big?
Date: Fri, 11 Jan 2008 12:39:05 +0000	[thread overview]
Message-ID: <200801111239.05507.giles@spacepigs.com> (raw)

Hiya,

I'm gradually falling in love with Ocaml, but my main hobby is writing demos, 
mainly in the 64k category.  Ocaml is a great way of writing small code, alas 
it comes with a zonking great lump of baggage :-)

"Hello world" written in ocaml and compiled with ocamlopt is 81K on my 32 bit 
linux box, which instantly rules it out.  (running it through upx packer, it 
comes out at 37k, which is still too high).

Are there any options which can strip this down to the bare minimum?  I'm 
guessing that much of the code in there is part of the garbage collection 
code, in which case, I'll have to give up, but it would be nice to use 
ocaml :-)

Thanks,

Giles


             reply	other threads:[~2008-01-11 12:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-11 12:39 Giles Constant [this message]
2008-01-11 15:24 ` [Caml-list] " Florent Monnier
2008-01-11 20:32 ` Lukasz Stafiniak
2008-01-13  2:23   ` Joel Reymont
2008-01-13  9:24     ` Dominique Martinet
2008-01-13 11:30       ` Lukasz Stafiniak
2008-01-13 11:46         ` Paolo Donadeo
2008-01-14  2:04           ` Stefan Monnier

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=200801111239.05507.giles@spacepigs.com \
    --to=giles@spacepigs.com \
    --cc=caml-list@yquem.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