Re: Mem under Linux
- From: Frank Kotler <fbkotler@xxxxxxxxxxx>
- Date: Sun, 30 Dec 2007 16:10:24 GMT
Thomas Jensen wrote:
Hi
Can someone help me with a link to a tutorial or a book, where I can learn about memory in Linux, so I can make dynamic allocations with syscalls, without malloc.
Some information about this in Jonathan Bartlett's "Programming from the Ground Up":
<http://www.cafepress.com/bartlettpublish.8640017>
Also available in the "'free' as in 'freeloader'" version:
<http://savannah.nongnu.org/projects/pgubook/>
This uses AT&T syntax. The examples have been translated to Nasm syntax by Wilhelm Zadrapa, and are available here:
<http:mysite.verizon.net/fbkotler/nasm-pgu-examples.tar.bz2>
.... if you'd find 'em helpful (no memory examples here... there's a "alloc.s" in the book... apparently didn't get translated... holler if you need it! Chuck's example looks about the same...)
(note that you can also use sys_mmap of an anonymous object to get memory - dunno which is best...)
Best,
Frank
.
- Follow-Ups:
- Re: Mem under Linux
- From: Thomas Jensen
- Re: Mem under Linux
- From: Charles Crayne
- Re: Mem under Linux
- References:
- Mem under Linux
- From: Thomas Jensen
- Mem under Linux
- Prev by Date: Re: NASM page
- Next by Date: Re: asm grep
- Previous by thread: Re: Mem under Linux
- Next by thread: Re: Mem under Linux
- Index(es):
Relevant Pages
|