Make a brk/sbrk emulation.

Mac OS X seems to have some difficulties with brk/sbrk (maybe with the
4MB heap limit), and replace all the allocation logic will be prone to
errors, I'll add a new define and lib to emulate brk/sbrk using more
standard allocation methods. By default the heap is 64MB, it should be
enough.
This commit is contained in:
Manoel Trapier
2013-03-27 15:49:29 +01:00
committed by Manoël Trapier
parent e92393d6f3
commit 5f00cd2e53
8 changed files with 134 additions and 5 deletions

11
pmfile
View File

@@ -19,6 +19,8 @@ CINCLUDES = {
include "util/data/pmfile"
include "modules/src/sbrk/pmfile"
include "util/LLgen/pmfile-ack"
include "modules/src/alloc/pmfile"
@@ -103,7 +105,10 @@ include "plat/nes/pmfile" -- NES
default = group {
-- Lots of things use LLgen, so we need to build it first.
-- Need it before anything else! (even LLgen depends on it)
module_sbrk,
tool_LLgen,
-- Some of the dependency management across modules isn't entirely
@@ -181,8 +186,8 @@ default = group {
-- Build the platforms.
platform_pc86,
platform_linux386,
platform_cpm,
-- platform_linux386,
-- platform_cpm,
-- platform_nes,
}