Sign in to follow this  

Would independent bytecode in one platform be possible?

This topic is 3412 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In my system, I create a Library, which is a static library of registered class & global functions . And there are an angelscript-compiler, linking with the Library, which could compile script code then save it as bytecode. In my runtime environment, I design a UI, linking with the same VM library, to execute the bytecode. All the registered functions and types in the Library wouldn't change, but the type property and member function will extend. (that is , the global function pointer will change, and the offset of class property will change.........) Is there any possible, If I compile script with older Library, and execute it with newer Library? I knwo that, independent bytecode with different platform is difficult, But the independent bytecode with the same registered enviroment will be easier, since you could use lookup table of registered type. It may be slow down the performance, but it will be practicality. Thanks a lot.

Share this post


Link to post
Share on other sites
It would be quite prone to errors, trying to make this work properly. It can certainly be done, but I'm not sure it is really worth it.

Why is that your compiler doesn't have the same interface as the application that will use the pre-compiled scripts?

Share this post


Link to post
Share on other sites
All datas are stored in pre-compiled scripts, everywhere.....
and those wouldn't be changed.
Those datas are huge, wasting a lot of compiling time.
(They are not only pure data, may contain equations, calling functions.....
You can think they are just a lot of Win32 DLL, run on-demand
)


But the execution environment maybe change the flow-logic, data-layout, making bug-fix......

I am looking for a solution to achieve the goal of "compile once, and run in different layout/logic".

Thanks a lot.

Share this post


Link to post
Share on other sites

This topic is 3412 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this