aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.Paul Sokolovsky
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 1.Paul Sokolovsky
Some tools do not support local/static symbols (one example is GNU ld map file). Exposing all functions will allow to do detailed size comparisons, etc. Also, added bunch of statics where they were missing, and replaced few identity functions with global mp_identity().
2014-02-11Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-02-11stm: Add specific UINT_FMT and INT_FMT.Damien George
For some reason, STM port, while it's 32 bit, needs %lu and %ld for printing machine_uint_t and machine_int_t.
2014-02-11Add prototype for gc_dump_info().Paul Sokolovsky
2014-02-11Merge pull request #278 from pfalcon/unix-gcDamien George
Enable GC for Unix port
2014-02-11Merge pull request #277 from pfalcon/link-mapDamien George
Enable link map file generation.
2014-02-11Merge pull request #276 from dhylands/cleanup-warningsDamien George
Bah - Removed a couple of warnings for teensy that I didn't notice before.
2014-02-11More GC debugging improvements.Paul Sokolovsky
2014-02-11stm: Provide malloc()/realloc()/free(), as forwarding to gc_*() functions.Paul Sokolovsky
Note: none of these functions are used by STM port, so they're provided to have parity with pre gc refactor status quo, and in case they will be needed in the future by some extension writers.
2014-02-11unix: Implement garbage collection support.Paul Sokolovsky
2014-02-11Generalize malloc-via-gc-heap support, make it available to unix port.Paul Sokolovsky
2014-02-11basics/enumerate.py: Don't turn enumerate test into heap test.Paul Sokolovsky
With range(10000), doesn't fit into 128K heap.
2014-02-11objstr: Mark few local symbols as static, cleanup codestyle.Paul Sokolovsky
Please don't submit patches with tab indentation!
2014-02-11gc: Don't segfault if gc_realloc() fails.Paul Sokolovsky
2014-02-11Enable link map file generation.Paul Sokolovsky
2014-02-11Rename str_join -> strjoin to make it not clash with objstr's one.Paul Sokolovsky
2014-02-10Bah - Removed a couple of warnings for teensy that I didn't notice before.Dave Hylands
2014-02-11gc: Make debug output configurable, revamp test function.Paul Sokolovsky
Test function needs to be called by something else. Test heap size reduced so its dump fits on a screenful of a typical terminal.
2014-02-11mp_obj_equal(): Instead of assert(), throw NotImplementedError.Paul Sokolovsky
With a nice traceback, helps debugging much better.
2014-02-11Typo fix in comment.Paul Sokolovsky
2014-02-10stm: Remove unused, useless and not-to-be-used strndup.Damien George
Addresses issue #275.
2014-02-10Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-02-10stm: Tidy up memory labels; optimise GC root scanning.Damien George
Addresses issues #272 and #273.
2014-02-10Merge pull request #271 from dhylands/teensy-2014-02-10Damien George
Updated teensy to work with latest on master
2014-02-10Merge pull request #270 from pfalcon/down-with-callocDamien George
Get rid of calloc().
2014-02-10Merge pull request #267 from pfalcon/func-ret-annDamien George
Clean up handling of function return type annotation.
2014-02-10Fix some int casting that failed on 64 bit architecture.Damien George
2014-02-10Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-02-10Updated teensy to work with latest on masterDave Hylands
Added analogRead, analogWriteXxx and servo support for teensy.
2014-02-10Get rid of calloc().Paul Sokolovsky
If there's malloc and memset, then there's no need for calloc, especially if we need to implement it ourselves.
2014-02-10socket: Tighten up int-to-str conversion.Paul Sokolovsky
2014-02-10socket: Make sure that symbol definitions are const.Paul Sokolovsky
2014-02-10Factor out mp_seq_count_obj() and implement tuple.count().Paul Sokolovsky
2014-02-10Implement tuple.index().Paul Sokolovsky
2014-02-10Factor out mp_seq_index_obj() function to implement .index() on sequences.Paul Sokolovsky
2014-02-10Clean up handling of function return type annotation.Paul Sokolovsky
2014-02-09Add NotImplementedError.Paul Sokolovsky
2014-02-09unix: Implement time.sleep().Paul Sokolovsky
2014-02-08Implement tuple multiplication.Paul Sokolovsky
2014-02-08Implement tuple addition.Paul Sokolovsky
2014-02-08Implement tuple comparison.Paul Sokolovsky
2014-02-08Refactor list comparison code to mp_seq_cmp_objs().Paul Sokolovsky
2014-02-08unix microsocket: Add dummy makefile() method.Paul Sokolovsky
Unlike CPython socket, microsocket object already implements stream protocol (read/write methods), so makefile() just returns object itself. TODO: this doesn't take care of arguments CPython's makefile() may accept.
2014-02-08ffi: Fix mp_obj_str_get_data() return type.Paul Sokolovsky
2014-02-08io.File, socket types: Add fileno() method.Paul Sokolovsky
Implementation is duplicated, but tolerate this for now, because there's no clear idea how to de-dup it.
2014-02-08Rename "rawsocket" module to "microsocket".Paul Sokolovsky
It's no longer intended to provide just "raw" socket interface, may include some convenience methods for compatibility with CPython socket - but anyway just minimal set required to deal with socket client and servers, not wider network functionality.
2014-02-08py: Add some qstrs to the global table.Damien George
2014-02-08py: Pass keyword args to native functions by using the stack.Damien George
Passing keyword arguments to a native function now no longer requires heap memory. The kw_args map is created on the stack using the args array as the table.
2014-02-08py: Allow mp_map_t to be initialised by a fixed-size, const table.Damien George
This allows keyword maps to be created directly from stack data.