mmap versus malloc

2005-10-09 Thread Jonathon McKitrick

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?

jm
--
What's good for the goose is good for the gander.
What the hell is a gander, anyway?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mmap versus malloc

2005-10-09 Thread Chuck Swiger

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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]