Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Strange hugeness of .o, .cmo, and .cmi files
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-03-31 (16:07)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: Strange hugeness of .o, .cmo, and .cmi files
> [Surprisingly large .cmo / .o files]

It's hard to say what's happening without seeing the source or the
generated assembly code.  If that kind of things doesn't scare you,
just compile with ocamlopt -S and look at the resulting .s file.
However, I'll venture a guess:

> Obviously, there are a lot of fields in the record type, and I
> assume that this is where the blowup is happening, but I'm not at
> all sure where.

OCaml 2.01 had a known code size problem with the
{ record with lbl = newval } construct, when "record" belongs to a
type with many labels.  This was fixed in OCaml 2.02, however.


- Xavier Leroy