aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-24modsocket: Fix uClibc detection.Paul Sokolovsky
2014-06-24unix: Dump default heap size in usage message.Paul Sokolovsky
2014-06-22unix: Don't error out on #warning directive.Paul Sokolovsky
2014-06-22modsocket: Workaround uClibc issue with numeric port for getaddrinfo().Paul Sokolovsky
It sucks to workaround this on uPy side, but upgrading not upgradable embedded systems sucks even more.
2014-06-22modsocket: Add call to freeaddrinfo().Paul Sokolovsky
2014-06-22unix: uClibc doesn't like NULL as a buffer arg to realpath().Paul Sokolovsky
So, allocate one explicitly.
2014-06-22py: Support arm and thumb ARM ISAs, in addition to thumb2.Paul Sokolovsky
These changes were tested with QEMU, and by few people of real hardware.
2014-06-21py: Include mpconfig.h before all other includes.Paul Sokolovsky
It defines types used by all other headers. Fixes #691.
2014-06-20mkrules.mk: Pass $(COPT) to link stage.Paul Sokolovsky
In generalize case, optimization options should be passed to all stages of the build process.
2014-06-20makefile: Pass STRIPFLAGS_EXTRA to strip.Paul Sokolovsky
Expected to be set on command line, with the idea being that for different targets, there're different smartass ABIs which strive to put unneeded sections into executables, etc., so let people have flexible way to strip that. The option name is similar to previously introduced CLFAGS_EXTRA & LDFLAGS_EXTRA.
2014-06-20unix: Allow to override MICROPY_GCREGS_SETJMP from cmdline.Paul Sokolovsky
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