mmap versus malloc

Chuck Swiger cswiger at mac.com
Sun Oct 9 12:35:52 PDT 2005


Jonathon McKitrick wrote:
> If I want to write an assembly language program without using libc, is it ok
> to use mmap and a file descriptor of -1 to allocate memory?

How about sbrk()?

> jm
> --
> What's good for the goose is good for the gander.
> What the hell is a gander, anyway?

A male goose... :-)

-- 
-Chuck



More information about the freebsd-questions mailing list