Tuesday, September 23, 2008

Question # 4:

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


Answer:

Assembly language are generally very simple, unlike in a high-level language. Each instruction typically consists of an operation or opcode plus zero or more operands. Most instructions refer to a single value, or pair of values. Generally, an opcode is a symbolic name for a single executable machine language instruction. Operands can be either immediate (typically one byte values, coded in the instruction itself) or the addresses of data elsewhere in storage.


Most assemblers also support pseudo-operations, which are directives obeyed by the assembler at assembly time instead of the CPU at run time. (For example, pseudo-ops would be used to reserve storage areas and optionally set their initial contents.) Often the names of pseudo-ops start with a dot to distinguish them from machine instructions.


Most assemblers provide flexible symbol management, letting programmers manage different namespaces, automatically calculate offsets within data structures, and assign labels that refer to literal values or the result of simple computations performed by the assembler. Labels can also be used to initialize constants and variables with relocatable addresses.


Assembly languages, like most other computer languages, allow comments to be added to assembly source code that are ignored by the assembler. Good use of comments is even more important with assembly code than with higher-level languages.

http://www.wikipedia.com/

No comments: