Monday, May 19, 2014

Computer Architecture have the good performance of computer system. It is implementing concurrency can enhance the performance. The concept of concurrency can be implemented as parallelism or multiple processors with a computer system. The computer performance is measured by the total time needed to execute application program. Another factor that affects the performance is the speed of memory. That is reason the current technology processor is having their own cache memory. Scalability is required in case of multiprocessor to have good performance.

The scalability means that as the cost of multiprocessor increase, the performance should also increase in proportion. The size access time and speed of memories and buses play a major role in the performance of the system.

Monday, April 28, 2014

The functions and purposes of translators

Machine code is the set of instructions or operations, in binary, that a computer's processor uses.

Assembly language is a set of mnemonics that match machine code instructions.

An assembler is software which translates an assembly language program into machine code.

An assembler looks up an assembly language mnemonic in a table and reads off the matching machine code instruction.

Interpretation involves software that reads one source code instruction, interprets it and executes it before moving onto the next instruction.

Compilation involves software that reads a complete source code program, analyses it and produces object code. The object code is executed without reference to the source code, at a later time (or even on a different computer).

During lexical analysis, the source code is checked and turned into a stream of tokens. Errors in the use of the language (such as misspelled keywords or incorrectly formed identifiers) are reported.

During syntax analysis, the output from the lexical analyser is checked against the grammar of the programming language. Errors in the use of the language (such as missing keywords) are reported.

In the code generation phase, the output from the syntax analyser is turned into optimised object code.

Optimisation tries to improve the code so that it takes as little processing time and memory as possible.

A library routine is a precompiled, self-contained piece of code that can be used in the development of other programs.