38
Section 2: Compiler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
2.9.12. Void Pointer (void *) ........................................................................................... 70
2.10. Conversions ..................................................................................................... 70
2.10.1. General Considerations ................................................................................... 70
2.10.2. Integer Types................................................................................................... 71
2.10.4. Floating-Point Types........................................................................................ 72
2.10.5. Usual Arithmetic Conversions.......................................................................... 72
2.10.6. Restrictions ...................................................................................................... 73
2.11. Function Calling Conventions .......................................................................... 73
2.11.1. Declarations and Definitions ............................................................................ 74
2.11.1.1. Function Prototypes...................................................................................... 74
2.11.1.2. Old-Style Declarations .................................................................................. 75
2.11.1.3. Mixing Prototype and Old-Style Declarations ............................................... 76
2.11.2. Passing Argument Values ............................................................................... 77
2.11.3. Accessing Parameters..................................................................................... 78
2.11.4. Returning Values ............................................................................................. 79
2.11.5. Register Usage ................................................................................................ 81
2.12. Compiler-Generated Function Calls ................................................................. 81
2.12.1. Internal Integer Arithmetic Functions ............................................................... 82
2.12.2. Internal Floating-Point Functions ..................................................................... 83
2.12.3. Debugging Functions....................................................................................... 86
2.13. Sections ........................................................................................................... 87
2.14. Static Storage Initialization ............................................................................... 87
2.15. Compiler Algorithms ......................................................................................... 90
2.15.1. Register Allocation........................................................................................... 90
2.15.2. Switch Statements ........................................................................................... 92
2.16. The C Preprocessor ......................................................................................... 93
2.16.1. Source File Inclusion ....................................................................................... 94
2.16.2. Conditional Compilation................................................................................... 94
2.16.3.1. Argument Substitution................................................................................... 96
2.16.3.2. The # Operator (stringizing) .......................................................................... 97
2.16.3.3. The ## Operator (concatenation).................................................................. 97
2.16.3.4. Rescanning and Further Replacement ......................................................... 97