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:
committed by
Manoël Trapier
parent
e92393d6f3
commit
5f00cd2e53
@@ -26,6 +26,8 @@ tool_LLgen = cprogram {
|
||||
cfile (d.."src/Lpars.c"),
|
||||
cfile (d.."src/tokens.c"),
|
||||
|
||||
lib_sbrk,
|
||||
|
||||
outputs = {"%U%/LLgen"},
|
||||
install = pm.install("%TOOLDIR%LLgen")
|
||||
}
|
||||
|
||||
@@ -20,7 +20,8 @@ tool_led = cprogram {
|
||||
|
||||
lib_string,
|
||||
lib_object,
|
||||
|
||||
lib_sbrk,
|
||||
|
||||
outputs = {"%U%/led"},
|
||||
install = {
|
||||
-- FIXME lib.bin in next line needs removing --- pm bug?
|
||||
|
||||
@@ -51,7 +51,8 @@ tool_ncgg = cprogram {
|
||||
},
|
||||
|
||||
lib_em_data,
|
||||
|
||||
lib_sbrk,
|
||||
|
||||
outputs = {"%U%-ncgg"},
|
||||
install = pm.install(TOOLDIR.."ncgg")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user