Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


JITable Script backend

This topic is 5178 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

Hoi ho, I''ve got my script engine now loaded with a JIT! Yipper. But I run into a few snags. I am using SoftWire, but the way I have done things, it is harder to use the allocator''s than to manage the registers myself My script language VM is based on a stack machine. Yep yep, because it is incredibly easy, because I am now the master of making fast stack based VMs :-) Also because, the compiler is almost straightforward to assemble to a stack VM. But, the X86 does not easily work with the way I have things. Currently I am dumping out the intermediate code pretty much like the stack eval, but as you guessed it''s not really great. Oik, well, on everything but loops the code generated by my JIT matches everything that VC 7.1 does (except that vc can do some things as intrinsics like printf, etc). The problem is loops. The problem, is that I do not quite understand yet how to walk the parse tree to assemble effcieintly to x86 code. I need advice on how to build a better backend etc I do not have much money for expensive books right now, and I can not find alot of info on Google either. Peace->out

Share this post

Link to post
Share on other sites

  • 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!