mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
WIP
This commit is contained in:
parent
b8cd4f0035
commit
240d5b165e
1 changed files with 13 additions and 5 deletions
|
@ -20,17 +20,25 @@
|
|||
#include <stdint.h>
|
||||
#include "tommath.h"
|
||||
|
||||
// Maximum number of args that GC will accept
|
||||
/**
|
||||
* Maximum number of args that GC will accept
|
||||
*/
|
||||
#define NUM_GC_ARGS 128
|
||||
|
||||
// Which way does the CPU grow its stack?
|
||||
/**
|
||||
* Which way does the CPU grow its stack?
|
||||
*/
|
||||
#define STACK_GROWTH_IS_DOWNWARD 1
|
||||
|
||||
// Size of the stack buffer, in bytes.
|
||||
// This is used as the first generation of the GC.
|
||||
/**
|
||||
* Size of the stack buffer, in bytes.
|
||||
* This is used as the first generation of the GC.
|
||||
*/
|
||||
#define STACK_SIZE 500000
|
||||
|
||||
// Do not allocate objects larger than this on the stack.
|
||||
/**
|
||||
* Do not allocate objects larger than this on the stack.
|
||||
*/
|
||||
#define MAX_STACK_OBJ (STACK_SIZE * 2)
|
||||
|
||||
// Parameters for size of a "page" on the heap (the second generation GC), in bytes.
|
||||
|
|
Loading…
Add table
Reference in a new issue