+ initialize heap in the system unit startup (but SysOSAlloc is not yet implemented)

git-svn-id: branches/wasm@48289 -
This commit is contained in:
nickysn 2021-01-21 22:22:08 +00:00
parent 11ed6adf63
commit fe7fd69d5e
2 changed files with 5 additions and 0 deletions

View File

@ -22,8 +22,11 @@
function SysOSAlloc(size: ptruint): pointer;
begin
DebugWriteLn('SysOSAlloc');
SysOSAlloc:=nil;
end;
procedure SysOSFree(p: pointer; size: ptruint);
begin
DebugWriteLn('SysOSFree');
end;

View File

@ -171,5 +171,7 @@ begin
{ To be set if this is a library and not a program }
IsLibrary := FALSE;
{$endif def FPC_HAS_FEATURE_DYNLIBS}
{ Setup heap }
InitHeap;
DebugWriteLn('System unit initialization end');
end.