Skip to content
Snippets Groups Projects
  • 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.
emitnx86.c 2.03 KiB