These versions of runtime.s
works by simulating the break region that is not present in either operating system. The region that it initially allocates is 4MB in size and can be increased by modifying the brk_region_size
value. In case where it does run out of memory, it will jump to __exception
and consequently terminate the process.
runtime.s
for Mac OS X does not have any library dependencies.
runtime.s
for Windows needs to be linked against Kernel32.lib as it requires some of the functions exported by the kernel32 DLL.