In: Computer Science
Question 2.
A programmer has to develop an instant messaging app used in mobile
phone. He is considering the computer instruction set architecture
of either RISC or CISC and the programming method of either
translation or interpretation.
(a) Suggest and justify the most suitable instruction set
architecture.
(b) Suggest and justify the most suitable programming method
Solution:
Answer:a) The Most Suitable Instruction set Architecture for development of Instant messaging app used in mobile phones is RISC Instriction Architecture.
Instant Message App is a software to be run on mobile gadgets used for message passing instantly like Whatsapp, face book messenger,telegram apps.Now a days a mobile gadget is multipurpose powerful tool to almost all kind of people, it useful for not only for Voice/video calls and Message service with Text, multimedia message support aslo.
A smart phone is almost useful like a laptop /computer system within our pocket.Portability and accessability make the mobile gadgets more flexible to provide better services.
Not only Message Apps but also business/commercial applications also become customised on mobile plat form.
To develop mobile apps we have to take care more about security aspects and effective methods to be used to build apps accurately.
From the available Instruction Architectures RISC(Reduced Instruction Set computer) is most appropriate for mobile apps development due to the below reasons:
1) RISC uses almost all opeartions are Register Operations which are very fast to execute
2) RISC instruction set size is Less so using few basic instructions all the programming can done
3) RISC Instruction size is also small as it uses simple addressing modes
4)RISC instructions are Single Clock Cycle instructions
5) RISC instructions are more power full like CISC
To support speed, portability of messaging RISC is more better than CISC which is large complex instruction set.
Answer b) The most suitable programming method for development of Instant messaging app used in mobile is Translation.
Translation method is also called as Compilation which translates entire source code into object code in a single attempt performs debugging and syntax and semantic analysis along with code optimization.
The Operating system is Andriod/IOS and Programming language is C based language so Translation method is more suitable than Interpretation method due to the below reasons:
1) Interpretation is also generates object code but line by line it is simple but takes more time than compiler
2) Translation method is very fast
3) Entire program is converted/debugged at a rapid
4) Code is RISC instructions which are simple and fast
5) This programming method also focus on security aspects and optimization of Application.