摘要:Current mobile environments, smart device platforms and web based platform are emerged. The smart device platforms are represented by Apple's iOS and Google's Android, and web based platform's core is HTML5. Our previous researches are focused on integrating the developmental environments of smart devices and producing the same runtime environment. The Smart Cross Platform - our research result - guarantees content compatibility on various smart devices and supports multiple programming languages like C/C++, Java, and Objective-C which is a solution to increase developmental productivity. The SVM (Smart Virtual Machine) is the core virtual machine of the smart cross platform. But the Smart Cross Platform and the SVM is not cover the web environment like HTML5. In this paper, a technique which allows previous SVM which operates on smart devices to operate on web environment is introduced. In order to provide SVM in a web environment, an interpreter includes SIL code that was designed and implemented in JavaScript. Each SIL code's semantics are reflected by JavaScript and an HTML5 based API and event model was combined to construct the overall SVM. In the whole design and implementation of the SVM which operates in the web based environment, this paper focuses on the interpreter which is a method to execute the contents. The implemented interpreter loads the SVM contents, creates a list of commands, analyzes on a stack base, executes the commands and reflects the results on the internal memory and status.
关键词:Smart Cross Platform; SVM; Interpreter; HTML5; Web based Virtual Machine