tinyhippo
tinyhippo

Reputation: 93

Allocate heap memory in 64-bit assembler

I was wondering if any one could explain in relatively simple terms, how to allocate heap memory?

I'm using x64 assembler (intel syntax) on a Linux machine. Up until now I have relied on making a call to the C function malloc, but I'm interest in the proper way.

Upvotes: 4

Views: 10285

Answers (1)

Brian Knoblauch
Brian Knoblauch

Reputation: 21379

There are syscall lists available online that give you parameters to call directly (instead of the C function). Example list: http://blog.rchapman.org/post/36801038863/linux-system-call-table-for-x86-64 Example usage: http://callumscode.com/blog/3

Upvotes: 2

Related Questions