FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


COMMON ALIGNMENT GRANULARITY

Syntax:

COMMON ALIGNMENT GRANULARITY [:] <integer> [BYTE[S]]

Function:

Most systems access memory more efficiently if objects occupy aligned addresses, addresses which are multiples of 4 or 8 bytes. The command COMMON ALIGNMENT GRANULARITY specifies the spacing of aligned addresses. The alignment rules used by most compilers, and by FPT, are that:

Note that the alignment granularity used by the command ALIGN OBJECTS IN COMMON BLOCKS cannot be specified interactively because addresses within COMMON blocks are computed before FPT enters interactive mode.

Where to use this command:

Operating system command line

Yes


Configuration file, config.fsp

Yes


Specification (FSP) files, *.fsp

Yes


Interactively, to FPT> prompt:

No


Interactive command files

No


Embedded in the Fortran code

Yes


Default:

COMMON ALIGNMENT GRANULARITY : 4 BYTES

Examples:

In an FSP file for DEC Visual Fortran under Windows:

%common alignment granularity: 8
%check alignment

See also:

ALIGN OBJECTS IN COMMON BLOCKS

CHECK ALIGNMENT


Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.