Solution Assignment 02 CS 710
Solution Assignment 02 CS 710
Question No. 1
a. How the cross-platform mobile development tools are helpful to develop an application
source code which is runnable on various operating systems? Give the answer in points
not in paragraphs.
The use of common programming language reduces the skill required to develop
applications
Source code written once and reused and compiled for different OS cut down on coding.
Above mentioned two points directly effect in reducing development time and long-term
support and maintenance cost.
Development in cross platform reduce gaining the knowledge about APIs except a few
selected APIs of Oss required by tools.
Development become a lot easier than development of native OS applications.
Market share increased for application business development model with reference to ROI.
b. In this paper, what are the parameters used by the authors for comparison of different
tools? Give the answer in points not in paragraphs.
1|Page
MSCS Solution Assignment CS-710 (Khalique Zafar -- ms160400272)
Question No. 2
a. Analyze the phone gap architecture in your own words. Give the answer in points not in
paragraphs.
PhoneGap 1.9.0 is an open source mobile development tools developed by Adobe Systems
Inc.
Licensing under Apache 2.0
Cross platform development tool fro Android, Bada, BlackBerry,iOS, Symbian, webOS
and windows Phone OS.
Use of modern programming language like HTML, HTML5, CSS, CSS3 and JavaScript
and functionality of known SDKs.
It is a wrapper that allow developer to wrap the application code for native applications.
Its hybrid no purely native nor web based.
PhoneGap composed of three layers
o Web Application
o PhoneGap
o OS and native APIs.
Web application layer represent source code
PhoneGap layer has JavaScript APIs and Native APIs
PhoneGap layer is responsible for interfacing with web Application layer as well as
interface between JavaScript and OS native APIs on OS and native APIs layer
PhoneGap provide developers JavaScript APIs to access the advance functionality of the
device.
b. Which are major components of MonSync architecture? Give the answer in points not
in paragraphs.
2|Page
MSCS Solution Assignment CS-710 (Khalique Zafar -- ms160400272)
o Syscalls provide necessary support for OS features like camera, contact, images,
audio and networking etc. Syscalls also take care the interpretation of MoSync
resource files and events.
o Resource System which manage resource objects like images, sound and data blobs
with support dynamic creation and destruction of resources.
o Internal extensions which provides design and configuration of each OS.
o Core take care of execution of MoSync programs by interoperation with Syscalls
and resources. Core has three types which are explained as under.
Virtual Machine Core provide support to load, interpret and run MoSync
bytecode directly
In VM core execution is done by small function which allow efficient just
in time(JIT) optimization which has same structure as core of Java ME.
Recompiler Core loads MoSync bytecode and recompiles it on specific
platform or typically ARM platform.
Recompiler core recompile and then code is generated executed.
Generated Core is the component which is responsible for the exhibiting the
interface with generated native code.
3|Page