1) read all code then convert it into machine

1)   
Explain a
short history of Assemblers and also types of Assemblers and Loaders?

 

It was first appeared in 1969. An assembler is a computer program that
is use to change assembly language code into machine language, instructions and
code that is processed by computer. It is use first read all code then convert
it into machine language that can be directed executed by computer.

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

There are two type of assemblers

1)  One pass Assembler

2)  Two pass assembler

Loader is use to load code on system memory of computer. Basically
it is the part of operating computer for loading data.

There are three types of loaders:

1)     
Compiler and go
loader

2)     
Absolute Loader

3)     
Linking Loader

 

2)   
Explain types
of Assemblers operations available in computer system?     

The assembler instructions which is executed by assembler converted
into machine language.

The request of instructions to assembler to do certain operations.

So the micro instruction is given to assembler to process
predefined steps of instructions. The

Way of process instructions is that first instructions sent into
high level assembler. Then translate code into machine language so on in
builder. Then the final result into executed load and module.

Basically assembler produce information for computer and user for
work.

 

 

 

3)     
Difference
between one-pass assembler and Two-pass assembler?      

Assembler is use to translate assembly language in to machine
language for in computer system.

ONE-PASS Assembler:

It is use to assign memory address of instruction to variable and
translate these code into machine code into first pass.

TWO-PASS Assembler:

Two pass assembler is a type of assembler that is use to read code
two time. In first step it reads all the variable and assign them memory
address. So into second step it read the whole source code and translate into
object code.   

4)   
Difference
between Absolute and relocatable object File?

Absolute Object File:

It is generated by LX51. So Linker is a absolute object module. But
all relocatable sections located into fixed positions. The object include
information require for global variables and other debugging details.

Relocatable Object File:

Relocatable do not have load address but it is only depend on
binary code offset. But executable file having load address no for offset
relate to the function.

5)     
Difference
between Absolute and relative address Expressions?

Absolute Object File:

It is generated by LX51. So Linker is absolute object module. But
all relocatable sections located into fixed positions. The object include
information require for global variables and other debugging details.

 

Relative Address Expressions:

It is a named register combined with numeric expressions. It is
write into source code and expressions. Some instruction can be accepted by
computer. If the offset is to large then assembler produce error.

6)     
What types of
Assembly-Time Errors can be occurred and Explain it?

Assembly Errors:

In assembly language errors apply into syntax and semantics. So
these are some errors messages and there meanings.

  

   Runtime Errors:

It is operational and i/o error. If these errors will happen into
computer so flagged on console.