Upgrade to remove ads
Terms in this set (10)
very simple instructions that can be executed directly by computer's CPU
high-level programming languages
Java, Pascal, or C++. Has to be first translated into machine language to run on computer.
program that takes a high-level-language program and translates it into executable machine-language program. Once translation done, can run only on one type of computer (ea/ computer has own machine language). A program must be re-translated with different compiler to run on a different computer. Translates program all at once. Complex program.
translates program instruction-by- instruction unlike compiler. Program that acts much like CPU, with fetch-and-execute cycle. Interpreter runs in loop, reads one instruction from program, decides what is necessary to carry out instruction, and then performs appropriate machine-language commands to do so.
Use of interpreters
execute high-level language programs. Can also let you use a machine-language program meant for one type of computer on another. Virtual PC: enables PC/Windows program to run on Mac. Interpreted programs are slower than compiled programs.
combo of compilation and interpretation. Java programs compiled into machine language for a computer that doesn't exist. JVM.
Java Virtual Machine (JVM)
"virtual" computer. Enables java to be used on any computer. All computer needs is interpreter for Java bytecode. Interpreter simulates JVM like Virtual PC simulates PC computer.
machine language for Java Virtual Machine. No necessary connection between Java and Java bytecode. Program in java can be compiled into machine language of real computer, and other programs written in other languages could be compiled into Java bytecode. However, combo of Java and Java bytecode is platform-independent, secure, network-compatible and allows you to program in modern high-level object-oriented language.
Java bytecode interpreter
different type needed for each computer, but can run any Java bytecode program. Same compiled program can be run on many different types of computers. Small, simple program. Easy to write a bytecode interpreter for a new type of computer to run compiled Java program. Harder to write Java compiler for same computer. Also acts as buffer between you and program you download. When running interpreter, it runs downloaded program indirectly which can protect you from dangerous parts of programs (Java programs downloaded over network).
Fixed slow issue of Java (because Java bytecode was executed by interpreter, Java bytecode programs could never run as quickly as programs compiled into native machine language, aka actual machine language of computer on which program is running). Translates Java bytecode into native machine language while executing the program.
This set is often in folders with...
You might also like...
Comp Sci Topic 1 Study Guide
Program design. Computer languages.
Info Tech Ch. 13
Other Quizlet sets
Programming I Exam 2
Speaking the language of programming the nxt
MIS 322 Midterm 1 (Chapter 1)