Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

objfun.c

Blame
    • Damien George's avatar
      a8a5d1e8
      py: Provide mp_decode_uint_skip() to help reduce stack usage. · a8a5d1e8
      Damien George authored
      Taking the address of a local variable leads to increased stack usage, so
      the mp_decode_uint_skip() function is added to reduce the need for taking
      addresses.  The changes in this patch reduce stack usage of a Python call
      by 8 bytes on ARM Thumb, by 16 bytes on non-windowing Xtensa archs, and by
      16 bytes on x86-64.  Code size is also slightly reduced on most archs by
      around 32 bytes.
      a8a5d1e8
      History
      py: Provide mp_decode_uint_skip() to help reduce stack usage.
      Damien George authored
      Taking the address of a local variable leads to increased stack usage, so
      the mp_decode_uint_skip() function is added to reduce the need for taking
      addresses.  The changes in this patch reduce stack usage of a Python call
      by 8 bytes on ARM Thumb, by 16 bytes on non-windowing Xtensa archs, and by
      16 bytes on x86-64.  Code size is also slightly reduced on most archs by
      around 32 bytes.
    objfun.c 19.87 KiB