How do you dynamically allocate memory in Mac OS X assembly?

Posted by Scott Bell on Stack Overflow See other posts from Stack Overflow or by Scott Bell
Published on 2010-03-16T17:41:49Z Indexed on 2010/03/16 17:51 UTC
Read the original article Hit count: 248

Filed under:
|
|
|

I would like to dynamically allocate memory from an assembly program that does not link against the standard C library. Since brk(2) and sbrk(2) are unavailable on Mac OS X (10.6.2), what are the alternatives?

(I'm guessing that it involves a Mach call, but there seems to be little documentation around that)

© Stack Overflow or respective owner

Related posts about mac

Related posts about assembly