Page 1 of 1

Updates on the new compiler / interpreter in 0.7.

PostPosted: Jul 15, 2004 @ 9:03pm
by kornalius
Just a quick update to let you guys know that I was hard at work with PPL (hence my less active posts here).

As a lot of you have read in a previous email, I rewrote the compiler and the interpreter in total C code instead of using the dynamic compiler to solve a really agravating problem with memory addressing.

Tests shows that the new interpreter is the same speed (faster in some cases) as the old interpreter and is obviously more portable and I can now make PPL compatible with SH3 and MIPS.

After a few weeks of head bashing, I finally found out why PPL was slowing down in some weird situations. Each time a proc or a func was called, PPL created new variables to memory dynamically and freed them after the proc or func exited. This proves to be a very bad design decision when done automatically (by the garbage collector). What I do now is I keep the variables (not the content that is allocated by the user but the internal variable structure content which is about 76 bytes per variable) in memory at all time and reuse them when needed. This technic improves the speed and also it's great for game development. Games need to run at the same speed all along. Memory will not get fragmented as much, therefore speed won't suffer.

I still have to work on the issue of structures. They are still running at variable speed. This should be fixed soon, now that I found out about the bad memory allocation in PPL.

Hope this post makes sense.

PostPosted: Jul 16, 2004 @ 9:51am
by webba
Kornalius,

Well done! It's good to hear that you've sorted the issues out. Now you can get back to work on new features and other improvements! We're a selfish lot aren't we? :twisted:
It'll all be worth it when you get it to final release.

Kind regards,
Andy

PostPosted: Jul 16, 2004 @ 3:07pm
by kornalius

PostPosted: Jul 16, 2004 @ 11:39pm
by kornalius

PostPosted: Jul 20, 2004 @ 2:27am
by kornalius

PostPosted: Jul 20, 2004 @ 10:38am
by webba

PostPosted: Jul 20, 2004 @ 2:21pm
by kornalius

PostPosted: Jul 21, 2004 @ 12:54am
by kornalius

PostPosted: Jul 21, 2004 @ 5:43pm
by kornalius
Today's updates so far:

1. GetFile and PutFile dialogs have enhanced. (Very nice!)

2. Accelerator keys support in menu items.

3. Toolbar buttons added to the main.ppl, editor.ppl and progman.ppl programs.

4. Editor.ppl support for font selection and added an ini file to store editor's preferences.

Regards,
Kornalius

PostPosted: Jul 21, 2004 @ 6:07pm
by PointOfLight

PostPosted: Jul 21, 2004 @ 6:49pm
by kornalius

PostPosted: Jul 21, 2004 @ 6:55pm
by PointOfLight

PostPosted: Jul 21, 2004 @ 8:44pm
by kornalius
Sounds good to me but you still have about a good week to play with them if you want. :wink:

Regards,
Kornalius