Table of Contents
show
Monolithic Programming
- This programming consists only global data and sequential code
- Example: Assembly language and BASIC
- The global data can be accessed and modified (knowingly or mistakenly) from any part of the program, thereby posting a serious threat to its integrity
- A sequential code is one in which all instructions are executed in the specified sequence
- In order to change the sequence of instructions, jump statements or goto statements are used
- Monolithic programs have just one program module as such programming languages do not support the concept of subroutines.
Structure of a monolithic program
A DB 10
B DB 20
SUM DB
MOV AX,A
ADD AX,B
MOV SUM,AX
JMP STOP
STOP: EXIT
Advantages
- Monolithic programming languages are used only for very small and simple applications where reusability is not a concern
Disadvantages
- All the actions required to complete a particular task are embedded within the same application itself. This makes the size of the program large
- Difficult to debug and maintain
Views: 8