2013-10-14 20:05:44 -04:00
|
|
|
#ifndef PICCONF_H__
|
|
|
|
#define PICCONF_H__
|
|
|
|
|
2013-10-17 00:55:00 -04:00
|
|
|
/* switch normal VM and direct threaded VM */
|
2013-10-17 00:54:48 -04:00
|
|
|
#define PIC_DIRECT_THREADED_VM 1
|
|
|
|
|
2013-11-05 06:33:24 -05:00
|
|
|
/* switch internal value representation */
|
2013-11-27 09:32:07 -05:00
|
|
|
/* #define PIC_NAN_BOXING 1 */
|
2013-11-05 06:33:24 -05:00
|
|
|
|
2013-10-17 04:08:33 -04:00
|
|
|
/* enable readline module */
|
|
|
|
#define PIC_ENABLE_READLINE 1
|
|
|
|
|
2013-10-17 00:55:00 -04:00
|
|
|
/* initial memory size (to be dynamically extended if necessary) */
|
2013-11-15 05:54:47 -05:00
|
|
|
#define PIC_ARENA_SIZE 100
|
2013-11-28 04:38:25 -05:00
|
|
|
#define PIC_HEAP_SIZE (50000 * 8)
|
2013-10-15 10:28:23 -04:00
|
|
|
#define PIC_STACK_SIZE 1024
|
2013-11-17 02:02:58 -05:00
|
|
|
#define PIC_RESCUE_SIZE 30
|
2013-10-15 22:53:25 -04:00
|
|
|
#define PIC_IREP_SIZE 256
|
2013-10-17 11:15:15 -04:00
|
|
|
#define PIC_GLOBALS_SIZE 1024
|
2013-10-30 03:37:43 -04:00
|
|
|
#define PIC_MACROS_SIZE 1024
|
2013-10-28 13:11:31 -04:00
|
|
|
#define PIC_SYM_POOL_SIZE 128
|
2013-10-20 20:29:56 -04:00
|
|
|
#define PIC_POOL_SIZE 1024
|
2013-10-15 00:20:45 -04:00
|
|
|
|
2013-10-17 00:55:00 -04:00
|
|
|
/* enable all debug flags */
|
2013-10-30 03:36:21 -04:00
|
|
|
/* #define DEBUG 1 */
|
2013-10-14 20:05:44 -04:00
|
|
|
|
|
|
|
#if DEBUG
|
2013-11-15 02:12:58 -05:00
|
|
|
# define GC_STRESS 1
|
2013-10-14 20:05:44 -04:00
|
|
|
# define VM_DEBUG 1
|
2013-11-22 06:29:05 -05:00
|
|
|
# define GC_DEBUG 1
|
|
|
|
# define GC_DEBUG_DETAIL 0
|
2013-10-14 20:05:44 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|