[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I think this qualifies as a newbie question



Oleg Goldshmidt <goldshmt@netvision.net.il> writes:

> "Peter L. Peres" <plp@actcom.co.il> writes:
> 
> > At the hw level: The addressable memory on an Intel proecssor is divided
> > into pages (currently 4k each ?). This is the minimum size of any
> > allocated memory, file, program etc. 
> 
> Are you saying that "malloc(sizeof(int))" allocates 4k on an Intel
> machine? 

malloc() is a [much] higher level than the kernel memory allocator. It 
*may* be the case however that *brk() family allocates memory in
4kb-pages. 

-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il