Friday, October 10, 2008

Question #6




#include
#include
#include
main()
{
unsigned char name[30];

clrscr();
printf(" Please enter your firstname: ");
scanf("%s",&name);
clrscr();
gotoxy(30,7);printf("hello %s ",&name);
gotoxy(30,8);printf("WELCOME TO TURBO-C PROGRAMMING!");
getche();
}

Thursday, October 2, 2008

Question #4

Justify what situations or applications programmers will rather use Assembly Languages than Higher Level Progamming Languages and vice versa.


Assembly Language to high level language
Programmers would simply use Assembly Language because the computation in assembly language program is less than the machine language while in high level language program the computation is less than assembly language. Assembly runs faster than high level language .
Programmers dont think that High level languages would simply translate the code line-by-line into assembly language.


High Level Language to assembly language
In the other side, high level language runs slower unlike assembly.the codes contains less. The program written on one computer can be used on any other computer .


Other explaination:

Programmer's would simply use the assembly language because it has a lot of application in today's generation.Examples of this common application are direct hardware manipulation, it access specialized processor and it address critical performance issues. One thing that programmers want this language is that it has it's different scenarios and uses. Actually, there are 12 scenarios 1) when a stand-alone binary-executable is required .2) when interacting directly with the hardware 3) when using process or -specific instructions not exploited by or available to the computer 4) embedded systems 5) when extreme exploitation is required 6) when a system with severe resource constraints 7) when there's no high level language exist 8) real-time program that needs precise timing and responses such as simulations, flight navigation system 9) when complete control over the environment is required 10) when writing computer viruses, boot loaders, certain device drivers, or other items very close to the hardware or low level operating system 11) when reverse engineering existing binaries which may or may not have been originally written in high level language 12) reverse engineering and modification of video games 13) used for writing games and show software for graphing calculators 14 )compiler writing. And it's uses device drivers, low embedded system and the real-time system.


Reference:
This is based on my understanding in our lecture .

Due: Sept. 25, 2008
Posted by ROSILIE at 10:58 PM 0 comments
Labels:
Tuesday, September 16, 2008