diff options
| author | Damien | 2013-12-21 18:17:45 +0000 |
|---|---|---|
| committer | Damien | 2013-12-21 18:17:45 +0000 |
| commit | d99b05282d14ceb0163cbcd059aa37bdb415af43 (patch) | |
| tree | 978135f9fe83d3c4d5b3c95f84cb104c0092936a /stm/mpyconfig.h | |
| parent | e2880aa2fdc75298df487df7519d483acb03959c (diff) | |
Change object representation from 1 big union to individual structs.
A big change. Micro Python objects are allocated as individual structs
with the first element being a pointer to the type information (which
is itself an object). This scheme follows CPython. Much more flexible,
not necessarily slower, uses same heap memory, and can allocate objects
statically.
Also change name prefix, from py_ to mp_ (mp for Micro Python).
Diffstat (limited to 'stm/mpyconfig.h')
| -rw-r--r-- | stm/mpyconfig.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/stm/mpyconfig.h b/stm/mpyconfig.h deleted file mode 100644 index 3fa3ac652..000000000 --- a/stm/mpyconfig.h +++ /dev/null @@ -1,18 +0,0 @@ -// options to control how Micro Python is built - -#define MICROPY_ENABLE_FLOAT (1) -#define MICROPY_EMIT_CPYTHON (0) -#define MICROPY_EMIT_X64 (0) -#define MICROPY_EMIT_THUMB (1) -#define MICROPY_EMIT_INLINE_THUMB (1) - -// type definitions for the specific machine - -#define BYTES_PER_WORD (4) - -typedef int32_t machine_int_t; // must be pointer size -typedef uint32_t machine_uint_t; // must be pointer size -typedef void *machine_ptr_t; // must be of pointer size -typedef float machine_float_t; - -machine_float_t machine_sqrt(machine_float_t x); |
