Jump to content
  • Advertisement
Sign in to follow this  
loboWu

Would independent bytecode in one platform be possible?

This topic is 3631 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!