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
Which function is consing?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-07-04 (14:24)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] Which function is consing?
What I would like to find out is how much memory each function  
allocates. I would like to minimize memory allocations as they put  
pressure on the garbage collector.

This type of info is reported for Lisp functions, for example.

	Thanks, Joel

On Jul 4, 2007, at 3:29 PM, Markus E.L. wrote:

> I'm not sure I understand what you mean -- but if you're looking for
> the function call(s) generated when a::as is compiled: There is no
> such function AFAIK: :: is a constructor (like 'Some') not a
> function (like (+)) and the construction process is completely  
> inlined (using
> ocaml -dinstr I see a makeblock in this instances, I assume that's
> it).
--      - EasyLanguage to C# compiler  - Blog