blob: 10abb8ce7500a69752e0ab40234607e67480db43 [file] [log] [blame]
Damienc025ebb2013-10-12 14:30:21 +01001// options to control how Micro Python is built
2
Paul Sokolovskyd674bd52014-01-04 19:38:19 +02003// Linking with GNU readline causes binary to be licensed under GPL
4#ifndef MICROPY_USE_READLINE
5#define MICROPY_USE_READLINE (1)
6#endif
7
Damiend2755ec2013-10-16 23:58:48 +01008#define MICROPY_EMIT_X64 (1)
Damien3ef4abb2013-10-12 16:53:13 +01009#define MICROPY_EMIT_THUMB (0)
10#define MICROPY_EMIT_INLINE_THUMB (0)
Damien George136f6752014-01-07 14:54:15 +000011#define MICROPY_MEM_STATS (1)
Damien Georgecbd2f742014-01-19 11:48:48 +000012#define MICROPY_DEBUG_PRINTERS (1)
Damien George136f6752014-01-07 14:54:15 +000013#define MICROPY_ENABLE_REPL_HELPERS (1)
Damien Georged3ebe482014-01-07 15:20:33 +000014#define MICROPY_ENABLE_LEXER_UNIX (1)
Damien George136f6752014-01-07 14:54:15 +000015#define MICROPY_ENABLE_FLOAT (1)
Paul Sokolovsky966879c2014-01-17 20:01:36 +020016#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG)
Damienc025ebb2013-10-12 14:30:21 +010017
18// type definitions for the specific machine
19
Paul Sokolovskye85c3892013-12-30 03:38:32 +020020#ifdef __LP64__
21typedef long machine_int_t; // must be pointer size
22typedef unsigned long machine_uint_t; // must be pointer size
Paul Sokolovskye85c3892013-12-30 03:38:32 +020023#else
24// These are definitions for machines where sizeof(int) == sizeof(void*),
25// regardless for actual size.
26typedef int machine_int_t; // must be pointer size
27typedef unsigned int machine_uint_t; // must be pointer size
Paul Sokolovskye85c3892013-12-30 03:38:32 +020028#endif
Damiend276f632013-10-22 16:05:47 +010029
Paul Sokolovskye85c3892013-12-30 03:38:32 +020030#define BYTES_PER_WORD sizeof(machine_int_t)
31
Damienc025ebb2013-10-12 14:30:21 +010032typedef void *machine_ptr_t; // must be of pointer size
Damiend99b0522013-12-21 18:17:45 +000033typedef const void *machine_const_ptr_t; // must be of pointer size
Damienc025ebb2013-10-12 14:30:21 +010034typedef double machine_float_t;
Damien087d2182013-11-09 20:14:30 +000035
36machine_float_t machine_sqrt(machine_float_t x);