Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Executable size?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sven Luther <sven.luther@w...>
Subject: Re: [Caml-list] Executable size?
On Wed, Nov 12, 2003 at 10:06:52AM -0800, Dustin Sallings wrote:
> 
> On Nov 12, 2003, at 9:33, Richard Jones wrote:
> 
> >Of course you can always use OCaml as a scripting language (ie.  tiny
> >"executables" preceeded by #!/usr/bin/ocaml), or distribute the
> >bytecode, which tends to be small, so you have more choices than the
> >languages you've listed above.
> 
> 	I haven't seen the bytecode be much smaller than native executables:
> 
> -rwx--x--x  1 dustin  staff   320900 12 Nov 10:06 parseTimingLog*
> -rwx------  1 dustin  staff   306614 12 Nov 09:59 parseTimingLogbc*

But then, you can link it dynamically :

  $ file  /usr/bin/ledit
  /usr/bin/ledit: a /usr/bin/ocamlrun script text executable
  $ ls -l  /usr/bin/ledit
  -rwxr-xr-x    1 root     root        94857 2003-09-30 22:40 /usr/bin/ledit

But then, you would only gain for packages using huge C bindings.

Friendly,

Sven Luther

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners