Contents
© National Instruments Corporation xi AutoCode Reference
Definitions and Conventions...........................................................................5-45
Shared Memory Fixed-Point Callouts in AutoCode/C.....................5-46
Shared Variable Block Support.......................................................................5-47
Shared Memory Callout Option........................................................5-50
Global Variable Block Callouts.......................................................................5-51
Callout Pairs......................................................................................5-51
Non-Shared (Local) Global Variable Blocks....................................5-51
Shared Global Variable Blocks.........................................................5-53
Chapter 6Vectorized Code GenerationIntroduction....................................................................................................................6-1
How Code Is Generated...................................................................................6-1
Scalar Gain Block Example..............................................................6-2
Vectorized Gain Block Example.......................................................6-3
Array Subscripts................................................................................6-4
Signal Connectivity.........................................................................................6-5
Block Outputs...................................................................................6-5
Block Inputs......................................................................................6-5
Vectorization Modes......................................................................................................6-7
Maximal Vectorization....................................................................................6-7
Mixed Vectorization........................................................................................6-7
Vector Labels and Names.................................................................6-8
Example...........................................................................................................6-8
Vectorization Features...................................................................................................6-14
Multiple Arrays within a Block.......................................................................6-15
Split-Merge Inefficiency.................................................................................6-17
Split Vector.......................................................................................6-17
Merge................................................................................................6-19
External Outputs..............................................................................................6-21
Copy-Back........................................................................................6-21
Eliminating Copy-Back.....................................................................6-23
Other Copy-Back Scenarios..............................................................6-23
Vectorized Standard Procedure Interface........................................................6-23
Ada Array Aggregates and Slices....................................................................6-25
Vectorization of the BlockScript Block.........................................................................6-27
Matrix Outputs...............................................................................................................6-28