Programming with C

⌘K
  1. Home
  2. Docs
  3. Programming with C
  4. Basics of C Programming
  5. Introduction to Programmi...
  6. Monolithic Programming

Monolithic Programming

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

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments