annotate kernel/memory.c3 @ 301:6753763d3bec

merge codegen into ppci package
author Windel Bouwman
date Thu, 05 Dec 2013 17:02:38 +0100
parents 9417caea2eb3
children
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1 module memory;
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 283
diff changeset
2
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
3 import process;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
4
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
5 var int ptr;
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
6
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 293
diff changeset
7 function u8* Alloc(int size)
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8 {
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 293
diff changeset
9 ptr = ptr + size;
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
10 return cast<u8*>(ptr);
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
11 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
12
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
13