The Wayback Machine - https://web.archive.org/web/20160917163301/https://www.opennet.ru/docs/RUS/gas/gas-7.html
The OpenNET Project
Image

Image   Image
Image
����� (����):    ������� (+) ������� WIKI MAN'� ����� twitter Image
Image
Image
Image

������� ������������ / ������ "����������������, �����" / ���������� ���������
Image
������ ����� ����������

7. ������������ ���������

��� ������������ ��������� ����� �����, ������������ � ����� (`.'). ��������� ����� ����� ������� �������, ������ ���������.

� ���� ����� ����������� �� ���������, ������� �������� ���������� �� ������� ���������, ��� ������� ��������������� GNU-���������. ��������� �������� ������������ ������������ �������������� ���������. �������� ����� 8, "������������� �����������".

7.1 .abort

��� ��������� ���������� ������������� ���������������. ��� ��������� ��� ������������� � ������� ������������. ���������� ���� ���� � ���, ��� ������������ ��� ����� ������������ ����� �������� � ���������. ���� ���������, ������������ �������� ��� ��������� ���� ����������, �� ��� ����� ������� ���������� ��� ���������, ����� �� ��� �� ��������� ���� ����������. �����-������ .abort ���������� ��������������.

7.2 .ABORT

��� ������ � ������� COFF as ������������ ��� ��������� ��� ������� .abort.

��� ������ � ������� b.out as ������������ ��� ���������, �� ���������� ��.

7.3 .align ����������_���������,����������_���������

��������� ������� ����� (� ������ ���������) �� ��������� �������. ������ ��������� (������� ������ ���� ����������) ���� ��������� ������������, ��� ��������� ����. ������ ��������� (����� ����������) ������ ��������, ������� ������ ���� �������� � ����������� �����. ��� ��������� (� �������) ����� ���� �������. ���� ��� �������, �� ����������� ����.

������, ������� �������� ������������, �������� � ����������� �� �������. ��� a29k, hppa, m86k, m88k, w65, sparc, Hitachi SH � i386, ������������ ������ ELF, ������ ��������� ������ ��������� ������������ � ������. ��������, .align 8 ����������� ������� ����� �� �������� 8. ���� ������� ����� ��� ������ 8, �� ������� ��������� �� �����.

��� �py��� ������, ������� i386, � �������������� ������� a.out, ��� ����������� ����� ������� ������� �����, ������� ������ ����� ������� ����� ����� ����������. ��������, .align 3 ����������� ������� ����� �� �������� 8. ���� ������� ����� ��� ������ 8, �� ������� ��������� �� �����.

��� �������������� ���������� ��-�� ���������� ��������� ������ �����������, ������� GAS ������ �����������. GAS ����� ������������ ��������� .balign � .p2align, ��������� ����, ������� �� ���� ���������� ����� ���� ��������� (�� �������� ������������ ��� GAS).

7.4 .app-file ������

.app-file (���.file) ������� as, ��� ������ �������� ����� ���������� ����. ������ - ��� ������ �����. ������ ������, ��� ����� ������������ ��� � ���������, ��� � ��� ���, �� ���� �� ������ ������ ������ ��� �����, �� �� ������ ��������� ��� �������. � ������� ���� �������� ����� ���������: �� ������������ ������ ��� ������������� �� ������� �������� ��������� as.

7.5 .ascii "������"

.ascii ������� ���� ��� ����� ��������� ��������� (�������� ������ 3.6.1.1 ������), ���������� ��������. ��� ��������� ������������ ������ ������ (��� �������������� ����������� �������� ����� � ����� ������) � ���������������� ������ ������.

7.6 .asciz "������"

.asciz - ��� �� �� �����, ��� �.ascii, �� �� ������ ������� ������� ������� ����. ����� z �������� ����������� �� ����� zero.

7.7 .balign ����������_���������,����������_���������

��������� ������� ����� (� ������ ���������) �� ��������� �������. ������ ��������� (������� ������ ���� ����������) ���� ��������� ������������. ��������,.balign 8 ����������� ������� ����� �� �������� 8. ���� ������� ����� ��� ������ 8, �� ������� ��������� �� �����.

������ ��������� (����� ����������) ������ ��������, ������� ������ ���� �������� � ����������� �����. ��� ��������� (� �������) ����� ���� �������. ���� ��� �������, �� ����������� ����.

7.8 .byte ���������

.byte ������� � �������� ���������� ���� ��� ����� ���������, ����������� ��������. ������ ��������� �������������� � ��������� ����.

7.9 .comm ������, �����

.comm ��������� �������������� ����� ������� � ������ bss. ������ ld �� ����� �������� ����������� ��� ����� ������ ������, ��� ��� �� ���� ��������� ��������� �� ���������� ��������� �������. ����������� .comm ��� ����, ����� ������� ld ��� ������ ���� ������� ������ ���� �� ������� ���� ����� ������. Ld �������� ������������ ��� ������� .comm-������� ������ �� ������� ���� � ������� ����, ������� ������� � ������������ ������� ���� ������������ ��������� ��������. ����� - ���������� ���������.

��������� ��� .comm ������� ���������� ��� HPPA. ��������� �����: "������ .comm, �����"; ������ ����� ���� ������.

7.10 .data ���������

.data ���������, ��� as ������ �������������� ����������� ��������� � ����� ��������� data � ������� ��������� (������� �������� ���������� ����������). ���� ��������� �������, �� �� ��������� �������������� ����.

7.11 .def ���

������ ����������� ���������� ���������� ��� ������� ���; ����������� ������������ �� ��������� .endef.

��� ��������� �������������� ������ ���� as ��������������� ��� ������ � � ������� COFF; ����� ������������ ����� � ������� b.out, .def ������������, �� ������������.

7.12 .desc ������, ����������_���������

��� ��������� ������������� ���������� ������� (�������� ������ 5.5 "�������� ������") � ������� 16 ��� ����������� ���������.

��������� .desc ����������, ����� as ��������������� ��� ������ � ������� COFF; ��� �������� ������ ��� �������� ��������� ������ a.out � b.out. ��� ������������� as ��������� ��, �� �� �������, ����� ��������������� ��� COFF.

7.13 .dim

��� ��������� ������������ ������������� ��� ��������� �������������� ���������� ���������� � ������� ��������. ��� ����������� ������ ������ ���� .def/.endef.

.dim ����� ����� ������ ��� ������ � ������ COFF; ����� as ��������������� ��� ������ � b.out, �� ��������� ��� ���������, �� ���������� ��.

7.14 7.14.double �����_�_���������_������

.double ������� ���� ��� ����� ����� � ��������� ������, ����������� ��������. ��� ��������� ������������ ����� � ��������� ������. ������ ��� ���������� ����� � ��������� ������ ������� �� ������������ as. �������� ����� 8 "������������� �����������".

7.15 .eject

���������� ��������� �������� �������� � �����, ��� ����������� ��� ���������.

7.16 .else

.else - ����� ��������� ��������� ��������������� � as; (�������� ������ 7.27 .if). ��� ��������� �������� ������ ������ ���� ��� ��������� ���������������, ���� ������� � ���������� .if ���� ������.

7.17 .endef

��� ��������� ���������� ����� ����������� �������, �������� � .def.

.endef ����� ����� ������ ��� ������ � ������� COFF; ���� as ��������������� ��� ������ � ������� b.out, �� ��������� ��� ���������, �� ���������� ��.

7.18 .endif

.endif - ����� ��������� ��������� ��������������� � as; ��� ��������� ���������� ����� ����� ����, ������� �������������� ������ �������. �������� ������ 7.27 .if.

7.19 .equ ������, ���������

��� ��������� ������������� �������� ������� ������ � ���������. ��� �������� ��������� .set; (�������� ������ 7.49.set).

��������� ��� equ �� HPPA �����: ������ .equ ���������.

7.20 .extern

.extern ����������� � ���������� - ��� ������������� � ������� ������������ - �� ������������. As ������������� ��� �������������� ������� ��� �������.

7.21 .file ������

��������� .file (������� ����� ����� ���� �������� ��� .app-file) ��������� as � ������ ������ ������������ �����. ������ - ����� ��� �����. ������ ������, ��� ����� ������������ ��� � ���������, ��� � ��� ���, �� ���� �� ������ ������ ������ ��� �����, �� �� ������ ��������� ��� �������. � ������� ���� �������� ����� ���������: �� ������������ ������ ��� ������������� �� ������� �������� ��������� as. � ��������� ������������� as ��������� .file ��� ���������, ����� �������� ���������� � ������� ������������. �������� ����� 8 "������������� �����������".

7.22 .fill ������, ������, ��������

������, ������ � �������� - ���������� ���������. ��� ��������� ��������� ������ ����� ������ ����. ������ ������ ���� ���� ��� ������. ������ ����� ���� ����� ��� ������, �� ���� �� ������ 8, �� �� ���������� 8, ��� ������������� � ������� ������������. ���������� ������� �� ������ ���� ������� �� 8-�������� �����. ������� 4 ����� - ����. ������� 4 ����� - ��������; ������� ������ � ����� �����, ��� � ����������, ��� �������� ������������ as. ������ ������ ������ � ����� ������� �� ���������������� ���������� ������� ������ ����� �����. ����� ��, ��� �������� ����������� ��������� ��� ������������� � ������� ��������p���.

P����P � �H���H�� ���y� ���� ��y����. ���� ���p�� ������� � �H���H�� ���y����y��, �� �H���H�� �p������������ �y���. ���� ������ ������� � ��������� ��������� �����������, �� ������ ���������� 1.

7.23 .float �����_�_���������_������

��� ��������� ������������ ���� ��� ����� ����� � ��������� ������, ����������� ��������. ��� ��������� ����� ��� �� ������, ��� � .single. ������ ��� ���������� ����� ������� �� ������yp���� as. �������� ����� 8 "������������� �����������".

7.24 .global ������, .globl ������

.global ������ ������ ������� ��� ld. ���� �� ����������� ������ � ��������� ���������, �� ��� �������� ���������� ��������� ��� ������ ��������� ��������, ������������ ������ � ����. � ��������� ������ ������ ������� ���� �������� �� ������� � ��� �� ������, �� ������������ � ������ �����, ������������ � ��� �� ���������.

��� ��������� (.globl �.global) �������� ��� ������������� � ������� ������������.

�� HPPA .global �� ������ �������, ����� ������� ������ ������ ��������� ����������. ��� ����� ������������ ���������� ������ �� HPPA ��������� .EXPORT. �������� ������ 8.5.5.

7.25 .hword ���������

��� ��������� ������� ���� ��� ����� ��������� � ������ ��� ������� �� ��� 16-������ �����.

��� �������� ��������� ��� .short; � ����������� �� ������� ��������� ��� ����� ����� ���� ��������� ��� .word.

7.26 .ident

��� ��������� ������������ ���������� ������������ ��� ��������� ����� ��������� �����. As ��������� ��� ��������� ��� ������������� � ���������� ������������, �� �� ����� ���� ������ � ����� � ���� �� ������.

7.27 .if ����������_������H��

.if �������� ������ ������ ����, ����p�� �������� �y���������� ������ �������� �p��p���� ������ � ��� ��y���, ���� �������H��_��P���H�� �� p���� �y��. ����� y������� ����� ������ ���� ���������.endif (�������� ������ 7.18 .endif); �� ������ ����� �������� ��� ��� ��������������� ������, ��������.else (�������� ������ 7.16.else).

����� �������������� ��������� �������� .if:

.ifdef ������

������������ ��������� ������ ����, ���� ������ ������ ��� ���������.

.ifndef ������

ifnotdef ������

������������ ��������� ������ ����, ���� ������ ������ �� ��� ���������. ��� �������� ��������� ������������.

7.28 .include "����"

��� ��������� ������������ ��������� ��������������� ������ � ��������� ����� ������ �������� ���������. ��� �� ����� �������������� ���, ��� ����� �� ������� ����� ��.include; ����� ���������� ���� ���������, ������������ ��������������� ��������� �����. �� ������ ��������� ����� ������, ��������� ����� ��������� ������ -I (�������� ����� 2 "����� ��������� ������"). ������� ������ ����� ����� �����������.

7.29 .int ���������

������� ���� ��� ����� ���������, ����� ������, ����������� ��������. ��� ������� ��������� ������ �����, ������� �� ����� ���������� ����� ����� �������� ���������. ������� ���� � ����� ����� ����� ������� �� ���� ������� ������.

7.30 .irp ������, ��������

��������� ������������������ ����������, ������� ��������� �������� �������. ������������������ �������� ���������� ���������� .irp � ������������� ���������� .endr. ��� ������� �����H�� ������ y�������������� � �H���H�� � ��������py���� ����������������� ���p���p��. ���� �� ������ ������� �H���H��, �� ������������������ ���p���p�� ��������py���� ���� p�� � ��������, y������������ � �y���y� ��p��y. ��� ������ �� ������ ��y�p� ���p���p�� �������y��� \������. H��p���p, ��������p������

             .irp    param,1,2,3
              move    d\param,<url url="mailto:sp@-" name="sp@-">
             .endr
������������ ��������p������

              move    d1,<url url="mailto:sp@-" name="sp@-">
              move    d2,<url url="mailto:sp@-" name="sp@-">
              move    d3,<url url="mailto:sp@-" name="sp@-">

7.31 .irpc ������, �H���H��

��������� ������������������ ����������, ������� ��������� �������� �������. ������������������ �������� ���������� ���������� .irpc � ������������� ����������.endr. ��� ������� ����� � �����H�� ������ y�������������� � ���� � ��������py���� ����������������� ���p���p��. ���� �� ������ ������� �H���H��, �� ������������������ ���p���p�� ��������py���� ���� p�� � ��������, y������������ � �y���y� ��p��y. ��� ������ �� ������ ��y�p� ���p���p�� �������y��� \������.

��������, ���������������

             .irpc    param,123
              move    d\param,<url url="mailto:sp@-" name="sp@-">
             .endr
������������ ���������������

              move    d1,<url url="mailto:sp@-" name="sp@-">
              move    d2,<url url="mailto:sp@-" name="sp@-">
              move    d3,<url url="mailto:sp@-" name="sp@-">

7.32 .lcomm ������, �����

����������� ����� (���������� ��������) ������ ��� ��������� ����� �������, ������������ �������� ������. ������ � �������� ������� ���������� �� ���� ������. ������ ���������� � ������ bss, ��� ��� � ������ ������� ��������� �������� ��������. ������ �� �������� �������� (������ ������ 7.24 .global), ��� ��� �� ������ �� ����� ��� ld.

��������� ��� .lcomm ������� ���������� �� HPPA:

      ������ .lcomm, �����
������ ����� ���� ������.

7.33 .lflags

As ��������� ��� ��������� ��� ������������� � ������� ������������, �� ���������� ��.

7.34 .line �����_������

������ ���������� ����� ������. �����_������ ������ ���� ���������� ����������. ��������� ������ ����� ���� ���������� �����. ��� �� �����, �py��� ���p���p �� ���� ��p��� (����� ����� p���������� ���p���p��) ����� ����p H���P_��P���-1. �����-���y�� as ���������� ������������ ��� ���������: ��� ������������ ������ ��� ������������� � ������������� ������������� �����������.

�p��y�p�������: � ������yp���� as ��� AMD29K ��� ������� ����������, ����������� ������� .ln.

���� ��� ��������� ������������� � ��������� ���������� ���� a.out � b.out, as ���������� �� ��� ������ � ������� COFF, � p������p����� ��� .ln, ���� ��� ��������� ��� ���� .def/.endef.

������ .def .line ������ ����� �������� ����� �� ��������, ������������ ������������ ��� �������� ��������������� ���������� � ������� ��� �������.

7.35 .ln �����_������

.ln - �������.line.

7.36 .list

��������� (������ � ���������� .nolist) ��������� ������������ ���������. ��� ��� ��������� ��������� ��������� ����������� �������� (���������� �����������). .list ����������� ���, � .nolist - ���������. ������������ ������� ��������� ������, ����� ������� ������ ����.

�� ��������� ������� ��������. ����� �� ��������� ��� (��� ������ ����� -a; �������� ����� 2 "����� ��������� ������"), ��������� �������� �������� ���������� ������ 1.

7.37 .long ���������

.long - ���� �����, ��� � .int, �������� ������ 7.29 .int

7.38 .macro

�������.macro �.endm ��������� ��� ���������� �������, ������� ������� ������������ �����. ��������, ��� ����������� ������� sum, ������� ���������� � ������ ������������������ �����.

             .macro  sum from=0, to=5
             .long   \from
             .if     \to-\from
              sum     "(\from+1)",\to
             .endif
             .endm
��� ���� ����������� SUM 0,5 ������������ ������������� �����

             .long   0
             .long   1
             .long   2
             .long   3
             .long   4
             .long   5
.macro ���_�������

.macro ���_������� ���������_�������

������ ����������� ������� ���������� ���_�������. ���� ��� ������ ������� ����������, ���������� �� ����� ����� ����� �������, �������� �� �������� ��� ���������. �� ������ ������ ��� ������ ������� �������� ���������� �� ���������, ������� ����� ����� �������� =��������_��_���������. ��������, ��� ���������� ���������.macro:

.macro comm

�������� ����������� ������� comm, ������� �� ����� ����������.

.macro plus1 p, p1

.macro plus1 p p1

��� ��������� �������� ����������� ������� plus1, ������� ����� ��� ���������, ������ ����������� ������� \p � \p1 ���������� �������� ����������.

.macro reserve_str p1=0 p2

�������� ����������� ������� reserve_str � ����� �����������. ��p��� ����� �������� �� y��������, � ���p�� ���. ����� ����p����� ��p�������� �� ������ ������� ���p�� ��� reserve_str A,B (� \p1 ���������� A � \p2 ���������� B), ��� � reserve_str,B (� \p1 ������� �������� �� ���������, � ������ ������ \p2 ���������� B).

����� �� ��������� ������ �� ������ ������ �������� ��������� ��� ��������, ��� � �������� ������. ��������, sum 9,17 ������������ sum to=17, from=9.

.endm

���������� ����� ����������� �������.

.exitm

��������������� ����� �� �������� ����������� �������.

\@

As ������ ����� ���������� �������� � ���� ������-����������; �� ������ ������� ��� ����� ��� ������ \@, �� ������ ������ ����������� �������.

7.39 .nolist

��������� (������ � ����������.list) ��������� ������������ ���������. ��� ��� ��������� ��������� ��������� ����������� �������� (���������� �����������). .list ����������� ���, � .nolist - ���������. ������������ ������� ��������� ������, ����� ������� ������ ����.

7.40 .octa �������_�����

��� ��������� ������� ���� ��� ����� ������� �����, ����������� ��������. ��� ������� �������� ����� ��� ������ 16-������� �����.

������ "octa" ������� �� ���������, � ������� "word" �������� ��� �����; ������������� octa - ����� �� 16 ����.

7.41 .org NEW-LC, FILL

���������� ������� ������� ����� �� NEW-LC. NEW-LC �������� ��� ���������� ����������, ��� ���������� � ��� �� �������, ��� � ������� ���������. ����� �������, �� �� ������ ������������ ��������� .org ��� ������������ ������; ���� NEW-LC �������� � ������ ������, �� ��������� .org ������������. ��� ������������� � ����������� ������������, ���� ������ NEW-LC ����������, �� as ������ �������������� � ������������� ������ NEW-LC ��� �� �� ������, ��� � ������ ���������.

.org ����� ������ ��������� ������� �����, ��� �������� ��� ����� ��; �� �� ������ ������������ .org ��� ���������� �������� �����.

��������� as �������� �������������� ��������� �� ���� ������, NEW-LC �� ����� ���� ��������������.

������ �����, ��� �������� .org ��������� � ������ ������, � �� � ������ ���������. ��� ���������� � ������� ������������.

����� ������������� ������� ����� (������� ���������), ����������� ����� ����������� FILL, ������� ������ ���� ���������� ����������. ���� ������� � FILL �������, �� FILL ���������� �����.

7.42 .p2align ����������_���������, ����������_���������

����������� ������� ����� (� ������ ���������) �� ��������� �������. ������ ��������� (������� ������ ���� ����������) ���� ��������� ����������� ����� ������� ����� � �������� ����� ����� ����������. ��������, .p2align 3 ����������� ������� ����� �� �������� 8.

������ ��������� (����� ����������) ������ ��������, ������� ������ ���� ��������� � ����������� ������. ��� � ������� ����� ���� �������, ����� ����������� ����� ����� ������.

7.43 .psize ������, �������

����������� ��� ��������� ��� ���������� ���������� ����� - �, ��������, ���������� �������, - ������� ����� ������������ ��� ���������� �������� ��� �������� ��������.

���� �� �� ����������� .psize, � �������� �� ��������� ����� 60 ����� �� ��������. �� ������ �������� ������� � �������; ������ �� ��������� 200 �������.

As ������� ����� �������� � ����� ������, ����� ����������� ����� ����� (��� ����� �� ���� ���������� ���, ��������� eject).

���� �� ���������� ������ �����, �� ����� �������� ����� ����������� ������ ��� ������ .eject.

7.44 .quad �������_�����

��������� .quad ������� � �������� ���������� ���� ��� ����� ������� �����, ����������� ��������. ��� ������� �������� ����� ��������� 8-�������� ���. ���� ������� ����� �� ���������� � 8 ����, �� �������� �������������� � ������� ������ ������� ���� �������� �����.

������ "quad" ������� �� ���������, � ������� "word" �������� ��� �����; ������������� quad - ����� �� 8 ����.

7.45 .rept �����_��������

��������� ������������������ ����� ����� ����������.rept � ����������� ���������� .endr �����_�������� ���.

��������, ���������������

             .rept   3
             .long   0
             .endr
������������ ���������������

             .long   0
             .long   0
             .long   0

7.46 .sbttl "������������"

���������� ������������ � �������� �������� (������ ������� ����� ��������� ������) ��� �������� ������������� ��������.

��� ��������� ������ �� ����������� ��������, ����� ��� � �� �������, ���� ��� ���������� � ������ ������ ������� ���� ��������.

7.47 .scl �����

������������� ����� �������� �������. ��� ��������� ����� ���� ������������ ������ ������ ���� .def/.endef. ����� �������� ����� ���������, �������� �� ������ ����������� ��� �������, ��� ��������� ������ ���������� ��� �������.

��������� .scl � �������� ������� � COFF-�������; ����� as ��������������� ��� ������ � ������� b.out ��� ��������� �����������, �� ������������.

7.48 .section ���, ���������

������������ ����������� ��� � ����� ��������� � ������� ��������� � COFF-������ � ������ ���. ���� �� ��������� ���������, �� as ���������� ��������� ����� ����. .section .text ������������ ���������.text; .section .data ������������ ��������� .data. ��� ��������� ������� ������ ��� ��������� ������������ ���� ������; ��� ������ � `a.out', ��������, ��� �� �����������, ���� � ��������� ������������ ��� a.out ����� ������ � �������� ���������.

7.49 .set ������, ���������

������������� �������� ������� � ���������. ��� ������ �������� � ��� ������� � ������������ � ����������. ���� ������ ��� ������� �������, �� �� �������� �������. (����p��� p����� 5.5 ��p��y�� �������.)

�� ������ ������������ ��y ��p�����y �� ��������� � ������y ������p����.

���� �� �������y��� ��y ��p�����y �� ��������� � ����������y ������y, �� � ��������� ���� ������������ ��������� ������������� ��������.

H� HPPA ��������� �����: ������ .set ���������

7.50 .short ���������

.short ������ �� �� �����, ��� � .word. �������� ������ 7.61.word.

� ��������� ������������� .short � .word ������� ����� ������ �����; �������� ����� 8 "������������� �����������".

7.51 .single �����_�_���������_������

��� ��������� ������������ ���� ��� ����� ����� � ��������� ������. ��� ����� ��� �� ������, ��� � .float. ������ ��� ���������� ����� � ��������� ������ ������� �� ������������ as. �������� ����� 8 "������������� �����������".

7.52 .size

��� ��������� ��������� ������������� ��� ��������� �������������� ���������� ��� ������� � ������� ��������. ��� ��������� ������ ������ ���� .def/.endef.

.size ����� ����� ������ ��� ������ � ������� COFF; ����� as ������� � b.out, �� ��������� ��� ���������, �� ���������� ��.

7.53 .space ������, FILL

��� ��������� ������ ������ ����, ������ �� ��������� FILL. � ������, � FILL - ���������� ���������. ���� ������� � FILL �������, �� �� ��������� FILL ����������� �����.

��������������: .space ����� ������ ������ �������� ��� HPPA; ����������� ��� ������ .block. �������� `HP9000 Series 800 Assembly Language Reference Manual' (HP 92432-90001) ��� �������� ��������� .space. �������� ������ 8.5.5 ��������� ���������� HPPA.

�� AMD 29K ��� ��������� ������������, ��� ����������� ��� ������������� � ������� ������������ AMD 29K.

��������������: � ����������� ������ GNU-���������� ��������� .space ����� ������ .block �������� ����� 8 "������������� �����������".

7.54 .stabd, .stabn, .stabs

��� ��� ���������, ������������ � .stab, ��������� ������� (�������� ����� 5 "�������") ��� ������������� �� � ������������� ����������. ��� ������� �� ������ � hash-������� as: �� ��� �� ����� ���� ���-���� ������ � �������� �����. ��������� �� ���� �����:

STRING

��� ��� �������. ��� ����� ��������� ����� ����� ����� \000, ��� ��� ��� ����� ����� �������, ��� ������� ����� ��������. ��������� ��������� ���������� ��� ����������� ������������ ������� �������� ����� ��������, ��������� ��� ����.

TYPE

���������� ���������. ��� ������� ��������������� � 8 ������� ��� ����� ���������. ����� ������� ����� ���������, �� ld � ��������� ���������� ����� ����������� ������� �����.

OTHER

���������� ���������. ���� ������� ������� ��������������� � ������� 8 ��� ���������.

DESC

���������� ���������. ���������� ������� �������������� � ������� 16 ��� ���������.

VALUE

���������� ���������, ������� ���������� ��������� �������

���� �p� ������ ���p���p�� .stabd, .stabn ��� .stabs ������ �p��y�p�������, �� ��p�����, ��� ��� ������� y�� ���� �������; �� ��������� ���������� �������������� ������ � ����� ��������� �����. ��� ���������� � ����������� ������������!

.stabd TYPE, OTHER, DESC

"���" ������� �� ������ ������. ��� null-���������, ��� �������������. ������ ���������� ���������� null-���������, ��� ��� ��� ��������� ����� � ��������� ����� �� ������ ������.

�������� ������� ����������� � ������� �����, � �������� ���������. ����� ���� ��������� ����������, �������� ����� ������� ���� ��p�� �������� ����� �� �p��� ��������p������.stabd.

.stabn TYPE, OTHER, DESC, VALUE

��� ������� y���������� � �y��y� ��p��y.

.stabs STRING, TYPE, OTHER, DESC, VALUE

��� ���� ����� ��p�������.

7.55 .string "��P���"

����py�� ����� � ��P��� � ��������� ����. �� ������ ������ ����� ����� ��p���, p������� �� ��������. ���� ��p����� �� �����p��� ��� ����p����� ������, �� ��������p ����������� ��p��y �y����� ������. �� ������ ������������ ���y� escape-������������������, ��������� � ������� 3.6.1.1 "������".

7.56 .tag ���_���������

��� ��������� ��������� ������������� ��� ��������� ��������������� ���������� � ������� ��������. ��� ��������� ��������� ������ ������ ���� .def/.endef. Tag'� ������������ ��� ���������� ����������� ���� �������� � ������� �������� � ���������� ���� ��������.

.tag ������������ ������ ��� ������ � ������� COFF; ����� as ������� ��������� ������ � ������� b.out, ��� ��������� �����������, �� ������������.

7.57 .text ���������

.text ��������� as, ��� �� ������ �������������� ��������� ��������� � ����� ��������� text � ������� ��������� (������� �������� ���������� ����������). ���� ��������� �������, �� �� ��������� �������������� ����.

7.58 .title "���������"

���������� ��������� � �������� �������� (������ ������� ����� ������ �������� � ����� ��������� �����) ��� �������� ������������� ��������.

��� ��������� ������ �� ��������� ��������, ����� ��� � �� �������, ���� ��� ���������� � ������ ������ ������� ���� ��������.

7.59 .type �����

��� ��������� ��������� ������ ������ ��� .def/.endef � ���������� ����� ��� ������� ���� �������� ������� ��������.

.type ������ � �������� ���������� ������ COFF; ����� as ������� � ������� b.out, ��� ��������� �����������, �� ������������.

7.60 .val �����

��� ��������� ��������� ������ ������ ��� .def/.endef � ���������� ����� ��� ������� �������� �������� ������� ��������.

.val ������ � �������� ���������� ������ COFF; ����� as ������� � ������� b.out, ��� ��������� �����������, �� ������������.

7.61 .word ���������

��� ��������� ������� ���� ��� ����� ��P���H��, ����� ������, p���������� ��������.

P����p ����������� ����� � ��p���� ���� � ��� ������� �� ������p��, ��� ����p�� ��y����������� ��������p������.

�p��y�p�������: ����������� ��p������ ��� �����p��� ���������p��

������ � 32-������ ��p����� �p���p�������, �� ������y���� ���� ��� 32-����y� ��p������, �p��y�� ����y���� ������ ��p������. ���� ����p��y���� ��� ������ ����� 32-����y� ��p������ (��� ��������� ��; �������� ����� 8 "������������� �����������"), �� ������ ��������������� ���� �����.

� ������� ��������������� ������ ����������� �� ���-�� ���������� as ������ ������ �������� ���� � ���������� .word. ��������� � ����� .word sym1-sym2 ����� �������� ������������ ��� ����� ������� ���������. ����� �������, ���� as ������������ ��������� � ����� .word sym1-sym2 � ������� ����� sym1 � sym2 �� ������������ � 16 ���, �� as ������� "��������� ������� ���������", ����� ����� ��������� ������. ��������� ������� ��������� ������� �� �������� ��������� �������� �� ������ ���� ����� ��������� �������. ���� �������� ������� �������� �� �������� ���������� ������ ����� �������. ������ ������� ���������� ������� �������� �������� ������� � sym2. �������� .word �������� sym1 ����� ����� �������� �������� �� sym2.

���� ���� ��������� ��������� .word sym1-sym2 ����� ��������� �������� ���������, �� ��� ��� ��������������� �� ����� ����� � ��� �� ������� ��������. ���� ��� �����������.word sym3-sym4, ����� �� �������������� � 16 ���, �� ������� ������� � sym4 ����� ���������� �� ��������� ������� ���������, � ��������� .word ���������� �� sym3 ����� ����� �������� �������� �� sym4; � ��� ����� ��� ���� ��������� ��������� ������� ��������, ��� ������� ��� �����.

7.62 ���������� ���������

�����-������ ��� ��������� ���������� ��������. ��� �������� ��� ������������� � ������� ������������.

 .abort
 .app-file
 .line

������ ����� ����������

  �������� �� �����
  ���������� �� ���������
Created 1996-2016 by Maxim Chirkov  
��������, �������, ����������, ���  
Hosting by BSH TopList ImageImage