Analysis of debugging process

Слайд 3

Syntax

name SEGMENT [[align]] [[combine]] [[use]] [[‘class’]]
Statements
Statements
………………
Statements
Statements
name ENDS

Syntax name SEGMENT [[align]] [[combine]] [[use]] [[‘class’]] Statements Statements ……………… Statements Statements name ENDS

Слайд 4

Attribute of segment alignment (type of alignment). It informs the compiler, that

Attribute of segment alignment (type of alignment). It informs the compiler, that
it is necessary to provide an allocation of the segment beginning at the given border (it is important for simplification of access to the data). There are following permissible meanings of this attribute:
BYTE. In this case the segment may be allocated starting from an arbitrary address in the main memory;
WORD. In this situation the initial (base) address of the segment will be dividable by 2;
DWORD. The segment begins with an address dividable by 4;
PARA. The segment begins with an address dividable by 16;
PAGE. The segment begins with an address dividable by 256;
MEMPAGE. The segment begins with an address dividable by 4 Kbytes.

Слайд 6

Attribute of segments combining (combining type). It informs the compiler, that it

Attribute of segments combining (combining type). It informs the compiler, that it
is necessary to combine segments of different modules, which have the same name. The default the combining is PRIVATE. Meanings of this attribute may be following:
PRIVATE. In this case the segment will not be united with other segments;
PUBLIC. It compels the compiler to unite all segments (with the same name) in one continues segment;
COMMON. In this case all the segments will overlay and use collectively (share) the memory (the size of such segment will be equal to the size of the segment with the largest area).
STACK. It determines a segment for the stack (there is some analogy with the PUBLIC).

Слайд 7

Attribute of segment class (type of class). It is enclosed in inverted

Attribute of segment class (type of class). It is enclosed in inverted
commas (‘’) string, which helps the compiler to determine an order of segments location during compilation a program, which consists from several modules
Имя файла: Analysis-of-debugging-process.pptx
Количество просмотров: 28
Количество скачиваний: 0