MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / set_memory

Function set_memory

tools/emscripten.py:225–230  ·  view source on GitHub ↗
(static_bump)

Source from the content-addressed store, hash-verified

223
224
225def set_memory(static_bump):
226 stack_low = align_memory(settings.GLOBAL_BASE + static_bump)
227 stack_high = align_memory(stack_low + settings.STACK_SIZE)
228 settings.STACK_HIGH = stack_high
229 settings.STACK_LOW = stack_low
230 settings.HEAP_BASE = align_memory(stack_high)
231
232
233def report_missing_exports_wasm_only(metadata):

Callers

nothing calls this directly

Calls 1

align_memoryFunction · 0.85

Tested by

no test coverage detected