Skip to content

Is it possible to allocate heap memory? #191

Discussion options

You must be logged in to vote

I know nothing about zig but from a quick bit of research page_allocator looks like it requests an entire page, 64k. The total memory available to wasm4 is 64k but only ~58k bytes is available for program memory so page_allocator fails.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@apppppppple
Comment options

@desttinghim
Comment options

@Mnohem
Comment options

@desttinghim
Comment options

@joshgoebel
Comment options

Answer selected by apppppppple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants