[LLVMdev] Heap memory allocation
tobias at grosser.es
Tue Jul 19 03:49:30 PDT 2011
On 07/19/2011 12:02 PM, Piotr Kaleta wrote:
> I'm implementing a lazy functional language and I need to allocate nodes
> on the heap. From what I've read LLVM supports only the 'alloca'
> instruction which allows to allocate memory on the stack. Is this true
> and and if so, what is the preferred way to solve my problem?
you could call to libc malloc function to allocate heap memory. There
may also be more efficient, but more complex methods.
More information about the llvm-dev