mescc: Add brk, naive malloc.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 2 Apr 2017 10:31:15 +0000 (12:31 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 2 Apr 2017 10:31:15 +0000 (12:31 +0200)
commit0685c9e7e8c514395fe4c502e5b2a8405bcf33f6
treed45b3844bb847d03f62ceed889020990c096f181
parentb1d6e19ecae691385e890733574c9ee9fe9d16b8
mescc: Add brk, naive malloc.

* scaffold/mini-mes.c (gc_init_cells): Use malloc to init g_cells.
* scaffold/malloc.c: New file.
* GNUmakefile (malloc, guile-malloc): New targets.
* module/mes/libc-i386.mes (i386:brk): New function.
  (i386:libc): Add it.
* mlibc.c (brk): New function.
  (malloc): Use it.
  (realloc): New function.
* module/mes/libc.mes (malloc, realloc): New functions.
.gitignore
GNUmakefile
module/mes/libc-i386.mes
module/mes/libc.mes
scaffold/malloc.c [new file with mode: 0644]
scaffold/mini-mes.c