the first version of c backend

This commit is contained in:
vms
2019-08-20 13:46:02 +02:00
parent cd7a0ba9cc
commit 34815dc578
16 changed files with 1257 additions and 0 deletions

13
backend-c/sdk/allocator.c Normal file
View File

@@ -0,0 +1,13 @@
#include "allocator.h"
#include <stdlib.h>
#define UNUSED(x) (void)(x)
void *allocate(size_t size) {
return malloc(size);
}
void deallocate(void *ptr, size_t size) {
UNUSED(size);
free(ptr);
}