OAR

RTEMS GNU Tools On-Line Library


Syntax Details

PREV UP NEXT Bookshelf GASP

3.8: Details of the GASP syntax

Since GASP is meant to work with assembly code, its statement syntax has no surprises for the assembly programmer.

Whitespace (blanks or tabs; not newline) is partially significant, in that it delimits up to three fields in a line. The amount of whitespace does not matter; you may line up fields in separate lines if you wish, but GASP does not require that.

The first field, an optional label, must be flush left in a line (with no leading whitespace) if it appears at all. You may use a colon after the label if you wish; GASP neither requires the colon nor objects to it (but will not include it as part of the label name).

The second field, which must appear after some whitespace, contains a GASP or assembly directive.

Any further fields on a line are arguments to the directive; you can separate them from one another using either commas or whitespace.

  • Markers
  • Constants
  • Symbols
  • Expressions
  • String Builtins

  • PREV UP NEXT Bookshelf GASP

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.