aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-20unix: Add CFLAGS_EXTRA & LDFLAGS_EXTRA for command line usage.Paul Sokolovsky
The idea is that it should be possible to pass any additional params for experimentation without need to patch sources (and without need to deviate from or repeat baseline options).
2014-06-20unix: Refactor order file munging fo MacOSX.Paul Sokolovsky
2014-06-20unix: Group CFLAGS related stuff together.Paul Sokolovsky
2014-06-20unix: Allow to override compiler warning options without touching the rest.Paul Sokolovsky
Some people want to enable even more warnings. Let them do it without putting burden on everyone. Some people vice versa think that current settings should be relaxed. In this regard, -Werror is the most problematic, it disallows to use #warning directive, and disallows to pass configuration settings on make command lines. Again, until decided how to deal with these globally, allow to work around these problems locally.
2014-06-20tests/float/: Skip tests if "math" module is not available.Paul Sokolovsky
2014-06-20py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT.Paul Sokolovsky
One thing is wanting to do 1 / 2 and get something else but 0, and quite another - doing rocket science ;-).
2014-06-20Merge pull request #697 from stinos/gc-debugPaul Sokolovsky
gc: More verbose debugging
2014-06-20Merge pull request #707 from eblot/master-v1.1.1-build-fixesPaul Sokolovsky
Fix missing declaration of assert() Replace ARRAY_SIZE with MP_ARRAY_SIZE
2014-06-19bench: Three ways to process a byte buffer.Paul Sokolovsky
2014-06-19bench: Add test for map() vs inplace operations in array-likes.Paul Sokolovsky
map() is 5 times slower. That's mostly because of inefficiency of creating containers from iterables of unknown length (like map()).
2014-06-19bench: Add tests for constructing various containers from iterator.Paul Sokolovsky
Both "bound" (like, length known) and "unbound" (length unknown) are tested. All of list, tuple, bytes, bytesarray offer approximately the same performance, with "unbound" case being 30 times slower.
2014-06-19bench: Add test for function call overhead.Paul Sokolovsky
For a trivial operation, calling a function is 5 times slower than doing operation inline.
2014-06-19Prefix ARRAY_SIZE with micropython prefix MP_Emmanuel Blot
2014-06-19Add missing “assert.h” file header inclusion from “nlr.h”Emmanuel Blot
2014-06-18Merge pull request #700 from swegener/for-upstreamDamien George
bare-arm, stmhal: Disable stack protector
2014-06-18bare-arm, stmhal, teensy: Duplicate -nostdlib to CFLAGSSven Wegener
As we are building with -nostdlib gcc features like the stack protector will fail linking, because the failure handlers are in gcc's internal libs. Such features are implicitly disabled during compilation when -nostdlib is used in CFLAGS too. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-06-18bare-arm, stmhal: Fix --nostdlib to -nostdlibSven Wegener
-nostdlib is the correct option, gcc recognizes the double dash version when in link-only mode, but not when compiling. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-06-18gc: Turn off debugging info againstijn
2014-06-18gc: Keep debug statements at beginning of scope where possiblestijn
2014-06-17Merge pull request #698 from dhylands/adc-fixDamien George
Fix problem with ADC reads and multiple channels
2014-06-17stmhal: Toggle LED using ODR ^= pin_mask.Damien George
2014-06-16Fix problem with ADC reads and multiple channelsDave Hylands
2014-06-16gc: More verbose debuggingstijn
Add more DEBUG_printf statements to trace gc behaviour
2014-06-15stmhal: Add Python function to set UART for REPL.Damien George
This adds a hook to get/set pyb_uart_global_debug from Python, using pyb.repl_uart(). You can set it to an arbitrary UART object, and then the REPL (in and out) is repeated on this UART object (as well as on USB CDC). Ultimately, this will be replaced with a proper Pythonic interface to set sys.stdin and sys.stdout.
2014-06-15stmhal: Fix type signatures on functions that take variable args.Damien George
2014-06-15stmhal: Fix file print methods to use print instead of printf.Damien George
Also make stdout_print_strn static (ultimately this function needs to be merged with stdout_tx_strn).
2014-06-15stmhal: Update and improve LCD driver.Damien George
Still some method names to iron out, and funtionality to add, but this will do for the first, basic version.
2014-06-14parsenum: Signedness issues.Paul Sokolovsky
char can be signedness, and using signedness types is dangerous - it can lead to negative offsets when doing table lookups. We apparently should just ban char usage.
2014-06-14Merge pull request #693 from iabdalkader/assertDamien George
Add __assert_func
2014-06-14Make __assert_func weakmux
2014-06-14Add __assert_func only if DEBUG=1mux
2014-06-14Add __assert_funcmux
* issue #692
2014-06-14objstr: Refactor to work with char pointers instead of indexes.Paul Sokolovsky
In preparation for unicode support.
2014-06-14unicode: Add trivial implementation of unichar_charlen().Paul Sokolovsky
2014-06-14unicode: String API is const byte*.Paul Sokolovsky
We still have that char vs byte dichotomy, but majority of string operations now use byte.
2014-06-14objstr: Be 8-bit clean even for repr().Paul Sokolovsky
This will allow roughly the same behavior as Python3 for non-ASCII strings, for example, print("<phrase in non-Latin script>".split()) will print list of words, not weird hex dump (like Python2 behaves). (Of course, that it will print list of words, if there're "words" in that phrase at all, separated by ASCII-compatible whitespace; that surely won't apply to every human language in existence).
2014-06-13Merge branch 'stinos-gc-pointers'Damien George
2014-06-13py, gc: Revert ret_ptr to void*, casting to byte* for memset.Damien George
2014-06-13Merge branch 'gc-pointers' of github.com:stinos/micropython into ↵Damien George
stinos-gc-pointers
2014-06-13stream: Use mp_obj_is_true() for EOF testing.Paul Sokolovsky
Getting a length of string may be expensive, depending on the underlying implementation.
2014-06-13gc: Use byte* pointers instead of void* for pointer arithmeticstijn
void* is of unknown size
2014-06-12py: Revert change of include, "" back to <> for mpconfigport.h.Damien George
2014-06-12py: Rename builtin "io" to "_io".Paul Sokolovsky
Functionality we provide in builtin io module is fairly minimal. Some code, including CPython stdlib, depends on more functionality. So, there's a choice to either implement it in C, or move it _io, and let implement other functionality in Python. 2nd choice is pursued. This setup matches CPython too (_io is builtin, io is Python-level).
2014-06-11py: Make 3 functions static.Damien George
2014-06-11py: Fix static defn in qstr; include mpconfigport.h with "" (not <>).Damien George
2014-06-11objfun: Remove no longer used mp_obj_fun_prepare_simple_args().Paul Sokolovsky
2014-06-11tests: Add testcases for "complicated" args to generator functions.Paul Sokolovsky
2014-06-11objgenerator: Finish refactor to use mp_setup_code_state().Paul Sokolovsky
2014-06-11objgenerator: First iteration of refactor to use mp_setup_code_state().Paul Sokolovsky
2014-06-11objfun: Factor out mp_setup_code_state() function to set up code_state object.Paul Sokolovsky
It needs to be reused for generator functions, too.