In virtual machine execution, what is the primary purpose of an interpreter?
13 views
- Convert high-level code into hardware instructions at compile time
- Execute instructions of a virtual machine at runtime (Correct Answer)
- Optimize code for memory allocation
- Generate assembly code directly from source code
Explanation
A virtual machine interpreter reads and executes bytecode or intermediate code at runtime, providing platform independence and abstraction from hardware.