|
4 | 4 |
|
5 | 5 | #include <mpconfigport.h> |
6 | 6 |
|
7 | | -#ifndef INT_FMT |
8 | | -// printf format spec to use for machine_int_t and friends |
9 | | -#ifdef __LP64__ |
10 | | -// Archs where machine_int_t == long, long != int |
11 | | -#define UINT_FMT "%lu" |
12 | | -#define INT_FMT "%ld" |
13 | | -#else |
14 | | -// Archs where machine_int_t == int |
15 | | -#define UINT_FMT "%u" |
16 | | -#define INT_FMT "%d" |
| 7 | +// Any options not explicitly set in mpconfigport.h will get default |
| 8 | +// values below. |
| 9 | + |
| 10 | +/*****************************************************************************/ |
| 11 | +/* Micro Python emitters */ |
| 12 | + |
| 13 | +// Whether to emit CPython byte codes (for debugging/testing) |
| 14 | +// Enabling this overrides all other emitters |
| 15 | +#ifndef MICROPY_EMIT_CPYTHON |
| 16 | +#define MICROPY_EMIT_CPYTHON (0) |
| 17 | +#endif |
| 18 | + |
| 19 | +// Whether to emit x64 native code |
| 20 | +#ifndef MICROPY_EMIT_X64 |
| 21 | +#define MICROPY_EMIT_X64 (0) |
17 | 22 | #endif |
18 | | -#endif //INT_FMT |
19 | 23 |
|
| 24 | +// Whether to emit thumb native code |
| 25 | +#ifndef MICROPY_EMIT_THUMB |
| 26 | +#define MICROPY_EMIT_THUMB (0) |
| 27 | +#endif |
20 | 28 |
|
21 | | -// Any options not explicitly set in mpconfigport.h will get default |
22 | | -// values below. |
| 29 | +// Whether to enable the thumb inline assembler |
| 30 | +#ifndef MICROPY_EMIT_INLINE_THUMB |
| 31 | +#define MICROPY_EMIT_INLINE_THUMB (0) |
| 32 | +#endif |
| 33 | + |
| 34 | +/*****************************************************************************/ |
| 35 | +/* Internal debugging stuff */ |
23 | 36 |
|
24 | 37 | // Whether to collect memory allocation stats |
25 | 38 | #ifndef MICROPY_MEM_STATS |
26 | | -#define MICROPY_MEM_STATS (1) |
| 39 | +#define MICROPY_MEM_STATS (0) |
| 40 | +#endif |
| 41 | + |
| 42 | +/*****************************************************************************/ |
| 43 | +/* Fine control over Python features */ |
| 44 | + |
| 45 | +// Whether to include REPL helper function |
| 46 | +#ifndef MICROPY_ENABLE_REPL_HELPERS |
| 47 | +#define MICROPY_ENABLE_REPL_HELPERS (0) |
| 48 | +#endif |
| 49 | + |
| 50 | +// Whether to support float and complex types |
| 51 | +#ifndef MICROPY_ENABLE_FLOAT |
| 52 | +#define MICROPY_ENABLE_FLOAT (0) |
27 | 53 | #endif |
28 | 54 |
|
29 | 55 | // Whether to support slice object and correspondingly |
30 | 56 | // slice subscript operators |
31 | 57 | #ifndef MICROPY_ENABLE_SLICE |
32 | 58 | #define MICROPY_ENABLE_SLICE (1) |
33 | 59 | #endif |
| 60 | + |
| 61 | +/*****************************************************************************/ |
| 62 | +/* Miscellaneous settings */ |
| 63 | + |
| 64 | +// printf format spec to use for machine_int_t and friends |
| 65 | +#ifndef INT_FMT |
| 66 | +#ifdef __LP64__ |
| 67 | +// Archs where machine_int_t == long, long != int |
| 68 | +#define UINT_FMT "%lu" |
| 69 | +#define INT_FMT "%ld" |
| 70 | +#else |
| 71 | +// Archs where machine_int_t == int |
| 72 | +#define UINT_FMT "%u" |
| 73 | +#define INT_FMT "%d" |
| 74 | +#endif |
| 75 | +#endif //INT_FMT |
0 commit comments