I read a lot about the comparison between compiler and an interpreter, but what i found that, compiler compiles a file into .obj file which after linking becomes .exe file.
But in the case of an interpreter, it interprets the code line by line and executes it directly...
My question is:- WHILE INTERPRETATION, HOW DOES THE INTERPRETER MAKES REFERENCE TO A LIBRARY FUNCTION OR A CODE THAT IS WRITTEN A LITTLE LATER THAN THE CURRENT CODE THAT IS BEING EXECUTED?
AND WHERE IS THE INTERPRETED CODE SAVED IMMEDIATELY AFTER EXECUTION? AS I HAD A DOUBT HOW CAN IT BE EXECUTED LINE BY LINE AS IT HAS TO MAKE SOME LIBRARY REFERENCES OR OTHER REFERENCES?
please please please help asap.