Damien George
69661f3343
all: Reformat C and Python source code with tools/codeformat.py.
...
This is run with uncrustify 0.70.1, and black 19.10b0.
2020-02-28 10:33:03 +11:00
Damien George
1d21b4e7d1
mpy-cross: Enable Xtensa-Windowed native emitter.
...
Selectable via the command line: -march=xtensawin.
2019-10-05 13:45:32 +10:00
stijn
5501092776
mpy-cross: Make mpconfigport.h compatible with msvc compiler.
...
Add a copy of the required options from windows/mpconfigport.h.
2019-09-18 22:16:19 +10:00
Damien George
c066dadc5b
mpy-cross/mpconfigport.h: Remove defn of MP_NOINLINE to use global one.
...
A global definition of MP_NOINLINE was added to py/mpconfig.h long ago in
0f5bf1aafe
2019-05-24 14:51:48 +10:00
Damien George
9c9bc65e74
mpy-cross: Add "-march=<arch>" option to select native emitter.
2019-03-14 12:22:25 +11:00
Damien George
31d2d83e79
mpy-cross: Enable building of x64 native .mpy files.
2019-03-08 16:51:04 +11:00
Damien George
03053f82db
mpy-cross, unix, windows, stmhal: Enable return-if-else optimisation.
...
Prior to making this a config option it was previously available on these
(and all other) ports, and it makes sense to keep it enabled for mpy-cross
as well as ports that have a decent amount of space for the code.
2017-04-22 15:12:48 +10:00
Damien George
4c307bfba1
all: Move BYTES_PER_WORD definition from ports to py/mpconfig.h
...
It can still be overwritten by a port in mpconfigport.h but for almost
all cases one can use the provided default.
2017-04-01 11:39:38 +11:00
Damien George
85ae17c993
mpy-cross: Get compiling after recent persistent code refactors.
2016-11-16 20:25:36 +11:00
Damien George
2b882e9aca
mpy-cross: Don't use the internal printf functions.
...
They require mp_hal_stdout_tx_strn_cooked, which requires extra work to
add to mpy-cross.
2016-09-05 17:30:24 +10:00
Damien George
675d1c9c60
ports: Remove typedef of machine_ptr_t, it's no longer needed.
...
This type was used only for the typedef of mp_obj_t, which is now defined
by the object representation. So we can now remove this unused typedef,
to simplify the mpconfigport.h file.
2016-08-15 11:02:59 +10:00
stijn
37b143ce9e
mpy-cross: Fix mingw and msys2 compilation
...
When compiling with msys2's gcc there's no need to apply the binary fmode
so adjust the Makefile to reflect that.
When compiling with mingw we need to include malloc.h since there is no
alloca.h, and the 64bit detection in mpconfigport.h needs some adjustment.
2016-07-30 21:15:45 +03:00
Damien George
56f76b873a
mpy-cross: Add new component, a cross compiler for MicroPython bytecode.
...
This component allows to generate .mpy files (pre compiled bytecode)
which can be executed within any MicroPython runtime/VM.
2016-02-25 10:12:21 +00:00