From c1713f3ee00eb507ea25f83390467f86a58674d9 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 8 Jan 2021 09:31:50 +0100 Subject: Use malloc to allocate heap and stack --- nfib.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nfib.ll') diff --git a/nfib.ll b/nfib.ll index ccec313..dcae8f0 100644 --- a/nfib.ll +++ b/nfib.ll @@ -63,8 +63,8 @@ define private i64 @_s2(i64 %arg, i64** %globasp) { } define i64 @main() { - %heap = bitcast [100000000 x i64]* @heap to i64* - %astack = bitcast [10000 x i64*]* @astack to i64** + %heap = call i64* @_alloc_heap(i64 1000) + %astack = call i64** @_alloc_a_stack(i64 1000) %r = call i64 @_s2(i64 43, i64** %astack) -- cgit v1.2.3