marekjm / viuavm

Parallel virtual machine designed to reliably run massively concurrent programs
https://viuavm.org/
GNU General Public License v3.0
71 stars 11 forks source link

Use CALL instruction to call foreign functions #82

Closed marekjm closed 9 years ago

marekjm commented 9 years ago

Refactor code so that call instruction is used to call foreign (imported with eximport) functions instead of excall. This issue will make excall instruction obsolete.

marekjm commented 9 years ago

This change will make it easier to implement typesystem extensions later. One thing that will become less complicated to implement is msg opcode for dynamic dispatch of methods - if the calling mechanism is unified there will be no problem with attaching foreign functions as accepted methods of prototypes.