|
| CODE Linker Directive| Abbreviation | None. | | Arguments | None. | | Default | No COD listing file is generated. | | µVision | Options — Listing — Linker COD Listing. | | Description | The CODE directive generates a code listing (.COD) file that contains the complete program source/assembly listing. For example:
.
.
.
----- FUNCTION main (BEGIN) -----
FILE: 'Measure.c'
187: void main ( void ) {
188: unsigned char idata cmdbuf [15];
189: unsigned char i;
190: unsigned int idx;
191:
192: #ifndef MONITOR51
193: /* initialize the serial interface */
194: SCON = 0x5A;
001647 75985A MOV SCON,#05AH
195: BD = 1;
00164A D2DF SETB BD
196: PCON |= 0x80;
00164C 438780 ORL PCON,#080H
197: #endif
198:
199: /* setup the timer 0 interrupt */
200: TH0 = (unsigned char) PERIOD;
00164F 758C06 MOV TH0,#06H
201: TL0 = (unsigned char) PERIOD;
001652 758A06 MOV TL0,#06H
202: TMOD = TMOD | 0x02;
001655 438902 ORL TMOD,#02H
203: TR0 = 1;
001658 D28C SETB TR0
204: ET0 = 1;
00165A D2A9 SETB ET0
205: EAL = 1;
00165C D2AF SETB EAL
.
.
.
Note - Linker Code Packing must be enabled for the Linker Code Listing to be generated. The linker code listing contains only code that is generated from C modules which are translated with Linker Code Packing.
| | See Also | PRINT | | Example |
LX51 MYPROG.OBJ CODE
|
Related Knowledgebase Articles |
|