Skip to content
Snippets Groups Projects
Select Git revision
  • 43f1848bfa81aa3cb0acd1e34eece0a11aa130d0
  • master default protected
2 results

compile.c

Blame
    • Damien George's avatar
      43f1848b
      py: Make viper functions have the same entry signature as native. · 43f1848b
      Damien George authored
      This commit makes viper functions have the same signature as native
      functions, at the level of the emitter/assembler.  This means that viper
      functions can now be wrapped in the same uPy object as native functions.
      
      Viper functions are now responsible for parsing their arguments (before it
      was done by the runtime), and this makes calling them more efficient (in
      most cases) because the viper entry code can be custom generated to suit
      the signature of the function.
      
      This change also opens the way forward for viper functions to take
      arbitrary numbers of arguments, and for them to handle globals correctly,
      among other things.
      43f1848b
      History
      py: Make viper functions have the same entry signature as native.
      Damien George authored
      This commit makes viper functions have the same signature as native
      functions, at the level of the emitter/assembler.  This means that viper
      functions can now be wrapped in the same uPy object as native functions.
      
      Viper functions are now responsible for parsing their arguments (before it
      was done by the runtime), and this makes calling them more efficient (in
      most cases) because the viper entry code can be custom generated to suit
      the signature of the function.
      
      This change also opens the way forward for viper functions to take
      arbitrary numbers of arguments, and for them to handle globals correctly,
      among other things.
    genapi.py 4.69 KiB