Skip to content
Snippets Groups Projects
  1. Feb 15, 2017
  2. Feb 14, 2017
  3. Feb 13, 2017
  4. Feb 12, 2017
    • Paul Sokolovsky's avatar
      unix/moduselect: Implement ipoll() method with no-allocation policy. · 16a3534a
      Paul Sokolovsky authored
      ipoll() allows to poll streams without allocating any memory: this method
      returns an iterator (a poll object itself), and the iterator yields
      preallocated "callee-owned tuple" with polling results for each active
      stream. The only operation a caller is allowed to do with this tuple is
      extracting values from it (storing the tuple as a whole somewhere is
      not allowed).
      16a3534a
  5. Feb 10, 2017
  6. Feb 09, 2017
  7. Feb 08, 2017
    • Paul Sokolovsky's avatar
      extmod/machine_signal: Implement Signal .on() and .off() methods. · 181f7d14
      Paul Sokolovsky authored
      Each method asserts and deasserts signal respectively. They are equivalent
      to .value(1) and .value(0) but conceptually simpler (and may help to avoid
      confusion with inverted signals, where "asserted" state means logical 0
      output).
      181f7d14
    • Damien George's avatar
      stmhal/Makefile: Drop use of -mabi=aapcs-linux; link libgcc by default. · 7ae9bee7
      Damien George authored
      The aapcs-linux ABI is not required, instead the default aapcs ABI is
      enough.  And using the default ABI means that the provided libgcc will now
      link with the firmware without warnings about variable vs fixed enums.
      
      Although the binary size increases by about 1k, RAM usage is slightly
      decreased.  And libgcc may prove useful in the future for things like
      long-long division.
      7ae9bee7
    • Dave Hylands's avatar
      py/nlr: Fix execstack builds for ARM. · aa34c553
      Dave Hylands authored
      It seems that the gcc toolchain on the RaspberryPi
      likes %progbits instead of @progbits. I verified that
      %progbits also works under x86, so this should
      fix #2848 and fix #2842
      
      I verified that unix and mpy-cross both compile
      on my RaspberryPi and on my x64 machine.
      aa34c553
    • Damien George's avatar
      py/map: Change mp_uint_t to size_t where appropriate. · af622eb2
      Damien George authored
      The internal map/set functions now use size_t exclusively for computing
      addresses.  size_t is enough to reach all of available memory when
      computing addresses so is the right type to use.  In particular, for
      nanbox builds it saves quite a bit of code size and RAM compared to the
      original use of mp_uint_t (which is 64-bits on nanbox builds).
      af622eb2
  8. Feb 07, 2017
  9. Feb 06, 2017
Loading