From d99b05282d14ceb0163cbcd059aa37bdb415af43 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 21 Dec 2013 18:17:45 +0000 Subject: 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). --- stm/mpyconfig.h | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 stm/mpyconfig.h (limited to 'stm/mpyconfig.h') 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); -- cgit v1.2.3