Various sections in assembly
Data Section
The data section is used for declaring initialized data and constants.
This data do not change during the run time.
Constants, file names, buffer size can be declared here
static int i = 10;
Syntax :- section.data
BSS Section
It is used for declaring the variables
Its also called uninitialized data section.
static int i;
Syntax :- section.bss
Text Section
The text section is used for keeping the actual code.
This section must begin with the declaration global _start, which tells the kernel where the program execution begins.
Syntax :-
Continued......
Last updated