Symbol Type Directive

The default type of a symbol in an object file is based on the assembly-time type of the symbol. See table Symbol Types below for a list of the symbol types and their predefined names. To explicitly specify a symbol’s type, use the .type directive in the following format:

.type   name,type

Where:

name

Represents a symbol name.

type

Specifies the symbol type using one of the  predefined symbols listed in table Symbol Types that follows.

 

Symbol Types

Symbol Types

Predefined Symbol Name of Type

Symbolic constants and undefined symbols

@notype

Labels and common symbols

@object

Function names

@function

Section names

Created by the assembler.

Note:

The assembler automatically creates a symbol of type name for section names. When the object file format is COFF32 (Windows NT) the assembler creates a function symbol name for @function. For more information see the Procedure Label (PLabel) section.