You copied the Doc URL to your clipboard.

Type directive

The .type directive sets the type of a symbol.

Syntax

.type symbol, %type

Description

.type

The .type directive sets the type of a symbol.

symbol

The symbol name to set the type for.

%type

The following types are accepted:

  • %function
  • %object
  • %tls_object

Examples

    // 'func' is a function
    .type func, %function
  func:
    bx lr

    // 'value' is a data object:
    .type value, %object
  value:
    .word 42
Was this page helpful? Yes No