Contents
vi
ni.com
Linking Procedures with Real-Time Applications or Simulator .................... 2-22
Invoking Generated Procedures Directly.......................................... 2-22
Invoking Procedures Using Generated UCB Wrapper Function...... 2-24
Invoking Procedures Using Generated Subsystem Function ........... 2-25
Fixed-Point AutoCode/C Implementation ...................................................... 2-26
Generated Code with Fixed-Point Variables .................................................. 2-28
Fixed-Point Data Types .................................................................................. 2-28
User Types ...................................................................................................... 2-30
Overflow Protection ........................................................................................ 2-31
Stand-Alone Files............................................................................................ 2-31
Macro Interface ............................................................................................... 2-32
Function Interface ........................................................................................... 2-33
Fixed-Point Conversion and Arithmetic Macros ............................................ 2-35
Conversion Macros........................................................................... 2-35
Arithmetic Macros ............................................................................ 2-38
Implementation of the Addition and Subtraction Macros ................ 2-40
Selecting Wordsize Extension in the Preprocessor Macro ............... 2-42
32-Bit Multiplication and Division Macros...................................... 2-42
32-Bit Multiplication ........................................................................ 2-42
32-Bit Division ................................................................................. 2-43
16-Bit by 8-Bit Division ................................................................... 2-43
32-Bit by 16-Bit Division ................................................................. 2-43
Fixed-Point Relational Macros ....................................................................... 2-44
Some Relevant Issues...................................................................................... 2-45
Chapter 3
Ada Language Reference
Supported Ada Compilers for the Stand-Alone Library ................................. 3-1
Enable( ), Disable( ), and Background( ) Procedures....................... 3-7
Error Procedure( ) Procedure............................................................ 3-7
Implementation_Initialize( ) Procedure............................................ 3-8
Implementation_Terminate( ) Procedure.......................................... 3-10