Advertisement

C interpreter??

Started by August 07, 2000 11:28 PM
10 comments, last by Martee 24 years, 5 months ago
quote: Original post by Serge K

Original post by phueppl1
……
But i can''t find 1 point why anybody should use an Interpreter instead of a Compiler? (I''d like to hear some points, thx ;-)

It can be used for debuging - an interpreter allows quick runtime changes in the code.

btw, MSVC6.0 has ability to recompile changed code from debuger - Edit & continue.
This feature has a lot of limitations, but quite useful anyway.

I can also find another greatest Interpreter stuff. It''s wide known, but rarely used. You can use an interpreter inside your own program (compiled) to run and interpret the logics of the creatures, trigger checks and other stuff. It gives you an ability to write addons for your programm without recompiling it. So HL does with it''s CounterStrike and other addons. Today i use my own interpreter which can execute programms in my own language. Generally you can develope your own multithreading using an interpreter. In the game with many cooperating objects it is VERY usefull. Imagine:

LoadAllBinaries();


RenderScene();
// logic here
for (int i=0; i<100; i++)
Objects->InterpretYourCode(TEN_COMMANDS);



Ok, i probably didn't think long enough... ;-)

Yes, debugging counts, but i don't think that the cross platform compatibility is a problem, 'cause there's probably a compiler before there's an interpreter, right?

just my opinion!
cya,
Phil




Visit Rarebyte!
and no!, there are NO kangaroos in Austria (I got this questions a few times over in the states ;-)

Edited by - phueppl1 on August 8, 2000 12:22:04 AM
Visit Rarebyte! and no!, there are NO kangaroos in Austria (I got this question a few times over in the states ;) )

This topic is closed to new replies.

Advertisement