Version française
Home     About     Download     Resources     Contact us    
Browse thread
Memory allocation nano-benchmark.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Memory allocation nano-benchmark.
On Fri, Feb 11, 2005 at 12:04:20PM +1100, skaller wrote:
> On Fri, 2005-02-11 at 03:50, Marwan Burelle wrote:
> > On Thu, 10 Feb 2005 09:59:53 -0500, John Prevost <j.prevost@gmail.com> wrote:
> > > In a program that allocates one very large chunk of memory, 
> 
> > It also depends on malloc, on Linux it sometimes works
> > "optimisticaly", that is, it won't realy allocate memory unless you
> > use it

You can call calloc() instead of malloc, so you automatically
use the memory.

Would be interesting to have a bench on this...



> 
> This behaviour is not allowed by the ISO C Standard.

Yes, that's true.


> This case was actually discussed by WG14.

What is the WG14?

Ciao,
   Oliver