- 11 Apr, 2014 17 commits
-
-
Damien George authored
This simplifies the compiler a little, since now it can do 1 pass over a function declaration, to determine default arguments. I would have done this originally, but CPython 3.3 somehow had the default keyword args compiled before the default position args (even though they appear in the other order in the text of the script), and I thought it was important to have the same order of execution when evaluating default arguments. CPython 3.4 has changed the order to the more obvious one, so we can also change.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Also convert mp_obj_is_integer to an inline function. Overall this decreased code size (at least on 32-bit x86 machine).
-
Damien George authored
It regressed a bit after implementing float/complex equality. Now it should be improved, and support more equality tests.
-
Damien George authored
It has (again) a fast path for ints, and a simplified "slow" path for everything else. Also simplify the way str indexing is done (now matches tuple and list).
-
Damien George authored
-
Damien George authored
Addresses issue #462.
-
Damien George authored
Update mkrules.mk
-
Damien George authored
-
Paul Sokolovsky authored
Pairs are limited to tuples so far.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
A specific target can define either MP_ENDIANNESS_LITTLE or MP_ENDIANNESS_BIG to 1. Default is MP_ENDIANNESS_LITTLE. TODO: Autodetect based on compiler predefined macros?
-
Paul Sokolovsky authored
-
- 10 Apr, 2014 23 commits
-
-
Andrew Scheller authored
make 'make clean' cleaner ;-)
-
Damien George authored
Update .gitignore
-
Damien George authored
Tweak pybcdc.inf to match recent changes to pybcdc.h
-
Damien George authored
Also contains raw memory read/write functions, read8, read16, read32, write8, write16, write32. Can now do: stm.write16(stm.GPIOA + stm.GPIO_BSRRL, 1 << 13) This turns on the red LED. With the new constant folding, the above constants for the GPIO address are actually compiled to constants (and the addition done) at compile time. For viper code and inline assembler, this optimisation will make a big difference. In the inline assembler, using these constants would not be possible without this constant folding.
-
Damien George authored
Working towards trying to support compile-time constants (see discussion in issue #227), this patch allows the compiler to look inside arbitrary uPy objects at compile time. The objects to search are given by the macro MICROPY_EXTRA_CONSTANTS (so they must be constant/ROM objects), and the constant folding occures on forms base.attr (both base and attr must be id's). It works, but it breaks strict CPython compatibility, since the lookup will succeed even without importing the namespace.
-
Andrew Scheller authored
Add test failure logs
-
Damien George authored
-
Damien George authored
-
Damien George authored
Can do this now that the stack size calculation is improved.
-
Damien George authored
Much less of a hack now. Hopefully it's correct!
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Previously, a failed malloc/realloc would throw an exception, which was not caught. I think it's better to keep the parser free from NLR (exception throwing), hence this patch.
-
Damien George authored
Now reads in small chunks at a time.
-
Damien George authored
-
Damien George authored
Labels should never be negative, and this modified type signature reflects that.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Eg, in CPython stdlib, email/header.py has a form-feed character.
-