24f8d5 No.4325
If I wanted to make a programmable VM with customizable opcodes, is there any more performant way to do so than using C to fill an array with function pointers that doesn't involve assembly magic? I would like to keep the code more or less portable.
I am asking because accessing a function pointer is always kind of expensive, so I was wondering if there is some better way to do it or simply any other language that is faster for this purpose than C.
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.