![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| 1) What do you mean by "run program"? A program that is compiled in C is executable. 2) Technically it's a program that can be interpreted by the JVM, not a JVM itself. 3) Sounds good. -Blake O'Hare |
| 2) replace "by" with "for" -Blake O'Hare |
| An interpreted program is NOT translated–a complied program is translated. An interpreted program is simply exectuted. So why then, does an interpreted program take longer to execute than a complied one is question 7? Summer McWilliams |
| Technically most interpreted languages these days (i.e. Python) are translated (or compiled, if you prefer) to bytecode for performance reasons. The difference between the bytecode generated by Python or Java and the object code generated by the C compiler is that the Python or Java bytecode will run on any platform that implements a PVM or JVM while the C object code usually only runs on the machine architecture it was compiled for (e.g. x86, PowerPC). I apologize if computer scientists sometimes use the same word to describe subtly different things. -Missing Page |
| An interpreted program is continuously translated. Each line as you run your program is translated, and executed, and then forgotten. A compiled program is translated once and the translation is stored and remembered. This makes it quicker to run since you don't have to keep translating every time you want to run a line. Kelly Lyons |
| They do semm to contradict, and I could be wrong–sorry if I am–I was just going off what I learned in the past and the fact that on page 312 of the book it says "Photoshop and Word are typically complied...they were written in a computer language and then translated into machine language using a program called a complier...Python, Java, etc. are actually interpreted...It's the difference between translating and then doing instructions versus simply doing the instructions." Basically, the way I have always understood it is that the main difference is that Python (an interpreted program) will execute in a language even though it may not completetly understand it, whereas Word (complied) "converts" to a language it can understand first, just like it would take you longer to read something written in another language that you somewhat know but not completely, than if someone translated it all into English for you and then you read it ...If I am wrong, feel free to correct me... Summer McWilliams |