summaryrefslogtreecommitdiff
path: root/py/compile.c
AgeCommit message (Collapse)Author
2014-01-04Convert Python types to proper Python type hierarchy.Damien George
Now much more inline with how CPython does types.
2014-01-04Split qstr into pools, and put initial pool in ROM.Damien George
Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
2014-01-04Improve configurability for native x64/thumb emitter.Damien George
With MICROPY_EMIT_X64 and MICROPY_EMIT_THUMB disabled, the respective emitters and assemblers will not be included in the code. This can significantly reduce binary size for unix version.
2014-01-03Change mp_compile so that it returns a function object for the module.Damien George
2014-01-02py: remove depedence on strcat and stpcpy.Damien George
This fixes Issue #29, and means the core is no longer dependent on string functions, except strlen.
2013-12-30py: make closures work.Damien George
2013-12-29Change memory allocation API to require size for free and realloc.Damien
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-12-20Fix a few compiler warnings.Damien
2013-12-12py: remove further unnecessary emit_verbatim code.Damien
2013-12-12py: fix bug with doc string not recognised after first newline of file.Damien
2013-12-12py: reduce use of emit_verbatim calls to minimum.Damien
2013-12-11py: work towards working closures.Damien
2013-12-10py: emit correct id for closed over variables.Damien
2013-12-10py: compiler supports string juxtaposition=concatenation.Damien
2013-12-10py: add skeletal import functionality.Damien
2013-11-28py: restrict further when for-range optimisation is done.Damien
2013-11-17Change some debugging/output messages for native code generation.Damien
2013-11-09Fix but with optimised range being 1 over.Damien
2013-11-06Add optimisation for "for x in range".Damien
2013-10-20Add local_num skeleton framework to deref/closure emit calls.Damien
2013-10-18Implement REPL.Damien
2013-10-15Implement basic exception framework, and simple for loop.Damien
2013-10-12Change ifdef/if defined to simple if's.Damien
2013-10-12Tidy up SMALL_INT optimisations and CPython compatibility.Damien
2013-10-12Option in compile.c to emit compatible or not with CPython.Damien
2013-10-12Separate out mpy core and unix version.Damien
2013-10-09Improve indent/dedent error checking and reporting.Damien
2013-10-08Native Python and Viper support for x64 and thumb all together.Damien
2013-10-07Merge viper types with standard native emitter.Damien
2013-10-07Implement crude viper emit stage.Damien
2013-10-06Make runtime able to call inline asm with 1 argument.Damien
2013-10-06Optimise typedargslist_name to not create a node if just an id.Damien
2013-10-06Almost supports arguments for inline asm functions.Damien
2013-10-05Add support for inline thumb assembly.Damien
2013-10-05Incorporate emit_thumb into new emit framework.Damien
2013-10-05Implement built-in decorators to select emit type.Damien
2013-10-05Factorise EMIT_COMMON calls, mostly into emit_pass1.Damien
2013-10-05Compiler computes labels and max_num_labels.Damien
2013-10-05Further factorise PASS_1 out of specific emit code.Damien
2013-10-05Restructure emit so it goes through a method table.Damien
2013-10-04Use macro EMIT_COMMON for emit_common calls.Damien
2013-10-04Initial commit.Damien