FPT and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Reference Manual Home |
Syntax:
UNWIND { INNER | OUTER } LOOPS FIRST |
Function:
This command specifies the order in which nested DO loops will be unwound.
If UNWIND INNER LOOPS FIRST is specified, nested loops will be unwound from the innermost loop first. This has the advantage that if loop unwinding is incomplete the unwinding of the inner loops will generate more efficient code. It has the disadvantage that the bounds of an inner loop may depend on the index of the outer loop, which will not be available when the inner loop is processed. Some inner loops may therefore not be unwound.
If UNWIND OUTER LOOPS FIRST is specified, nested loops will be unwound from the outermost loop first. If the bounds of an inner loop depend on the index of an outer loop, the bounds will available, and the inner loop will be unwound. However, if loop unwinding is incomplte, the code generated will be less efficient.
Please see the UNWIND LOOPS and UNWIND commands for a description of the unwinding process.
Where to use this command:
Operating system command line |
Yes |
|
Configuration file, config.fsp |
Yes |
|
Specification (FSP) files, *.fsp |
Yes |
|
Interactively, to FPT> prompt: |
Yes |
|
Interactive command files |
Yes |
|
Embedded in the Fortran code |
Yes |
|
Default:
Inner loops are unwound first by default.
Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.