Download CC665S User's Manual

Transcript
Table Of Contents
Table Of Contents
1. OVERVIEW .............................................................................................................................................................................1
2. OPERATING ENVIRONMENT............................................................................................................................................3
2.1 HARDWARE AND MEMORY REQUIREMENT......................................................................................................3
2.2 SYSTEM CONFIGURATION........................................................................................................................................3
2.3 ENVIRONMENT VARIABLES .....................................................................................................................................3
3. INVOKING CC665S AND COMMAND LINE OPTIONS.................................................................................................5
3.1 INVOCATION OF CC665S............................................................................................................................................5
3.2 COMMAND LINE OPTIONS .......................................................................................................................................8
3.2.1 Machine Model Options.......................................................................................................................................8
3.2.2 ‘C’ Memory Model Options ................................................................................................................................9
3.2.3 Mixed Memory Model Options..........................................................................................................................11
3.2.4 ‘C’ And Mixed Memory Model Combination..................................................................................................13
3.2.5 Optimization Options...........................................................................................................................................14
3.2.6 Code Generation...................................................................................................................................................22
3.2.7 Output Files...........................................................................................................................................................23
3.2.8 Preprocessor Options..........................................................................................................................................25
3.2.9 Stack.......................................................................................................................................................................28
3.2.10 Debugging Options ...........................................................................................................................................29
3.2.11 Miscellaneous Options .....................................................................................................................................31
3.2.12 Invalid Combination Of Options......................................................................................................................34
4. MEMORY MODELS............................................................................................................................................................35
4.1 C MEMORY MODELS.................................................................................................................................................35
4.2 HARDWARE MEMORY MODELS...........................................................................................................................36
4.3 OBJECTS AFFECTED BY MEMORY MODELS......................................................................................................36
4.3.1 Memory Model Qualifiers ...................................................................................................................................37
4.3.2 Data Variables .......................................................................................................................................................37
4.3.3 Tables.....................................................................................................................................................................38
4.3.4 Strings....................................................................................................................................................................39
4.3.5 Functions...............................................................................................................................................................39
4.4 COMBINATION OF C AND MIXED MEMORY MODEL OPTIONS..................................................................40
4.4.1 Small C Memory Model.......................................................................................................................................40
4.4.2 Effective Medium C Memory Model.................................................................................................................41
4.4.3 Medium C Memory Model..................................................................................................................................42
4.4.4 Compact C Memory Model.................................................................................................................................43
4.4.5 Effective Large C Memory Model......................................................................................................................44
4.4.6 Large C Memory Model......................................................................................................................................45