Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Final Exam Review Fall 2004: Coompilers, interpreters, and lnaguages, oh my!

1)a translated program in machine language, but not run program??
2)a program translated into JVM>??
3)simple language easily run on any processor, only compiled once and works everyhwhere
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
What are the "Coompilers" and "lnaguages" that this page title speaks of?
1) you would get out machine language
2) you would get out a virtual language written by a Java Virtual Machine
4) scripting language is meant to be used easily, by non-professional programmers, to solve relatively simple tasks.
5) machine language tells computers to do very low-level activities and cannot easily be read by people. assembler language is a set of words or near-words that correspond one-to-one with the machine language.. easier for people to understand
6) "interpreted" means translate and then do what it says (if need to be done twice, translated twice and done twice)
7) JES is interpreted twice which makes it very slow whereas Photoshop runs in machine language
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
my notes from class say an interpreted program continuously translates...that's wrong?
the book says "it must translate then do the functions" id go with the book and your notes
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
OK wait Summer said above "An interpreted program is NOT translated", then Kelly just said "An interpreted program is continuously translated." Do these two statements not contradict eachother?
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



Link to this Page