Take the 2-minute tour ×  I am creating scripting language that
first parse the code and then copy functions (To execute the
code) to one buffer\memory as the parsed code.  There is a way
to copy function's binary code to buffer and then execute the
whole buffer? I need to execute all the functions at once to get
better performance.  To understand my question to best I want to
do something like this:  #include <vector> using namespace std;
class RuntimeFunction; //The buffer to my runtime function  enum
ByteCodeType {  class ByteCode {     ByteCodeType type;  void
ReturnRuntime() {  RuntimeFunction
GetExecutableData(vector<ByteCode> function) {
RuntimeFunction runtimeFunction=RuntimeFunction(sizeof(int));
//Returns int     for (int i = 0 ; i < function.size() ; i++ ) {
#define CurrentByteCode function[i]         if
(CurrentByteCode.Type==Return) {         } //etc.     return
runtimeFunction;  void* CallFunc(RuntimeFunction
runtimeFunction,vector<void*> custom_parameters) {     for (int
i=custom_p