Assignment No.1
Assignment No.1
ASSIGNMENT NO 1
2. LINKER:
- A linker is a software tool used in microprocessor-based systems to
combine multiple object files
and resolve references between them to create a single executable
program.
- It ensures that all the pieces of a program work together correctly by
connecting functions and
variables from different source code files, allowing them to communicate
with each other and
produce a functioning program.
- It resolves symbols and addresses, ensuring that different parts of
program can interact correctly.
.text: Indicates the code section where the program's instructions are
located.
Reserve Directives:
- Reserve directives are a subset of assembler directives that are
specifically used to allocate memory
space for data.
- These directives are used to reserve memory for variables, arrays, and
other data structures within
the program.
- Reserve directives are crucial for organizing data in memory, ensuring
proper memory allocation,
and managing data sizes.
- Examples of common reserve directives include:
.space or .skip: Reserves a specific number of bytes for data.
.byte: Reserves a byte (8 bits) for a single data element.
.word: Reserves a word (typically 16 or 32 bits) for data.