1. 11 Jan, 2015 1 commit
  2. 01 Jan, 2015 1 commit
  3. 05 Nov, 2014 1 commit
  4. 25 Oct, 2014 1 commit
    • Damien George's avatar
      py: Store bytecode arg names in bytecode (were in own array). · 1084b0f9
      Damien George authored
      This saves a lot of RAM for 2 reasons:
      
      1. For functions that don't have default values, var args or var kw
      args (which is a large number of functions in the general case), the
      mp_obj_fun_bc_t type now fits in 1 GC block (previously needed 2 because
      of the extra pointer to point to the arg_names array).  So this saves 16
      bytes per function (32 bytes on 64-bit machines).
      
      2. Combining separate memory regions generally saves RAM because the
      unused bytes at the end of the GC block are saved for 1 of the blocks
      (since that block doesn't exist on its own anymore).  So generally this
      saves 8 bytes per function.
      
      Tested by importing lots of modules:
      
      - 64-bit Linux gave about an 8% RAM saving for 86k of used RAM.
      - pyboard gave about a 6% RAM saving for 31k of used RAM.
      1084b0f9
  5. 03 Oct, 2014 1 commit
  6. 29 Sep, 2014 1 commit
  7. 23 Sep, 2014 1 commit
    • Damien George's avatar
      stmhal: Initialise stack pointer correctly. · eaaebf32
      Damien George authored
      Stack is full descending and must be 8-byte aligned.  It must start off
      pointing to just above the last byte of RAM.
      
      Previously, stack started pointed to last byte of RAM (eg 0x2001ffff)
      and so was not 8-byte aligned.  This caused a bug in combination with
      alloca.
      
      This patch also updates some debug printing code.
      
      Addresses issue #872 (among many other undiscovered issues).
      eaaebf32
  8. 04 Sep, 2014 1 commit
  9. 29 Aug, 2014 1 commit
  10. 24 Aug, 2014 1 commit
  11. 15 Aug, 2014 2 commits
  12. 03 Jul, 2014 1 commit
  13. 30 Jun, 2014 1 commit
  14. 26 Jun, 2014 1 commit
  15. 11 Jun, 2014 2 commits
  16. 07 Jun, 2014 4 commits
  17. 01 Jun, 2014 1 commit
    • Damien George's avatar
      Rename bultins config variables to MICROPY_PY_BUILTINS_*. · fb510b3b
      Damien George authored
      This renames:
      MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET
      MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY
      MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE
      MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT
      
      See issue #35 for discussion.
      fb510b3b
  18. 30 May, 2014 1 commit
  19. 21 May, 2014 1 commit
  20. 17 May, 2014 1 commit
  21. 13 May, 2014 1 commit
  22. 10 May, 2014 3 commits
  23. 03 May, 2014 3 commits
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
    • Paul Sokolovsky's avatar
      objclosure, objcell: Print detailed representation if was requested. · 418aca97
      Paul Sokolovsky authored
      Well, it is bound to "detailed error reporting", but that's closest what we
      have now without creating new entities.
      418aca97
    • stijn's avatar
      py: Use <alloca.h> for alloca() · 98e2ee0e
      stijn authored
      alloca() is declared in alloca.h which als happens to be included by stdlib.h.
      On mingw however it resides in malloc.h only.
      So if we include alloca.h directly, and add an alloca.h for mingw in it's port
      directory we can get rid of the mingw-specific define to include malloc.h
      and the other ports are happy as well.
      98e2ee0e
  24. 02 May, 2014 1 commit
  25. 01 May, 2014 3 commits
  26. 30 Apr, 2014 3 commits
  27. 27 Apr, 2014 1 commit