/** Bootstrap allocation. Problem is that the dynamic linker calls require
* calloc to work and calloc requires the dynamic linker to work. */
-#define BOOTSTRAPBYTES 4096
+#define BOOTSTRAPBYTES 131072
char bootstrapmemory[BOOTSTRAPBYTES];
size_t offset = 0;
sz = (sz + 7) & ~7;
if (sz > (BOOTSTRAPBYTES-offset)) {
- model_print("OUT OF BOOTSTRAP MEMORY\n");
+ model_print("OUT OF BOOTSTRAP MEMORY. Increase the size of BOOTSTRAPBYTES in mymemory.cc\n");
exit(EXIT_FAILURE);
}
+++ /dev/null
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include "libinterface.h"
-
-struct node {
- struct node * next;
-};
-
-
-void foo()
-{
- int i;
- int x = 0;
-
- struct node * n = malloc(sizeof(struct node));
- n->next = 0;
-
- i = load_32(&x);
-
- if ((i = load_32(&x))) {
- printf("%d\n", i);
- }
-
- while (load_32(&n->next)) {
- ;
- }
-}