// co-kc251.lnt // Compiler Options for the Keil C251 Compiler Version 1.0 // // This file contains options to allow PC-lint to process source // files for your compiler. It is used as follows: // // lint co-kc251.lnt source-file(s) // // You may contact Keil Software, Inc. at: // // Phone: 972-312-1107 Fax: 972-312-1159 // Sales: 800-348-8051 // www.keil.com //----------------------------------------------- //----------------------------------------------- +v // Verbose Mode -width(0,10) // Don't break lines (this is required for MicroVision) -elib(652) // suppress message about #define of earlier declared symbols -elib(762) // suppress message about multiple identical declarations -elib(760) // suppress message about multiple identical macro defs //----------------------------------------------- //----------------------------------------------- -e34 // ignore complaints about non-constant initializers. // this is because of things like: sbit ResetClock = P3^3; -e557 // ignore complaints about not recognizing printf formats //----------------------------------------------- // Enable near and far pointers and bit types //----------------------------------------------- +rw(far,near) +rw(_bit) // activate the _bit datatype -dbit=_bit // #define bit as _bit -sp3 // size of generic pointer is 3 bytes -spF3 // size of far pointer is 3 bytes -spN2 // size of near pointer is 2 bytes //----------------------------------------------- // Define keywords that require an argument //----------------------------------------------- +rw(_gobble) // activate the _gobble keyword // causes _gobble token to be both ignored -dinterrupt=_gobble // ignore "interrupt n" in func definition -dusing=_gobble // ugnore "using n" in func definition -d_at_=_gobble // ignore "_at_ n" in var definition -d_task_=_gobble // ignore "_task_ n" in func definition -d_priority_=_gobble // ignore "_priority_ n" in func definition -d"sbit=unsigned char" // nearest approximation -d"sfr=unsigned char" // nearest approximation -d"sfr16=unsigned short" // nearest approximation //----------------------------------------------- // Define keywords for other special stuff //----------------------------------------------- +rw(bdata, data, idata, code, pdata, xdata) +rw(small, compact, large) +rw(alien, reentrant) //----------------------------------------------- // Setup compiler defines //----------------------------------------------- +d__C251__=110 // set C51 compiler version to 1.10 +d__DATE__="07/01/96" // set C51 compiler date macro +d__FILE__="MYFILE.C" // set C51 compiler file macro +d__LINE__=100 // set C51 compiler line macro +d__MODEL__=0 // set memory model to small +d__TIME__="11:55:00" // set C51 compiler time macro +d__STDC__=1 // set C51 compiler STDC macro //----------------------------------------------- //But since these types take initializers, //objects like those below are considered to be //multiply defined if they appear in more than //one module. Ergo we suppress 14 - //Multiply-defined. Oh what a tangled web we //weave ... //----------------------------------------------- -esym(14,AA,AC,ACC,ACH0,ACH1,ACH2,ACH3,ACMP,ADCH,ADCON,ADCON0) -esym(14,ADCON1,ADDAT,ADEX,ADM,ADR0,ADR1,ADR2,ADR3,ADRES,ADRES0,ADRES1) -esym(14,ADRES2,ADRES3,ADRES4,ADRES5,ADRES6,ADRES7,AE,AMSK0,AMSK1,ARCON,AUXR) -esym(14,B,BAUD,BCRH0,BCRH1,BCRL0,BCRL1,BD,BGEN,BKOFF,BSY,C1) -esym(14,C1CAP0H,C1CAP0L,C1CAP1H,C1CAP1L,C1CAP2H,C1CAP2L,C1CAP3H,C1CAP3L,C1CAP4H,C1CAP4L,C1CAPM0) -esym(14,C1CAPM1,C1CAPM2,C1CAPM3,C1CAPM4,C1CF0,C1CF1,C1CF2,C1CF3,C1CF4,C1CON,C1EX0) -esym(14,C1EX1,C1EX2,C1EX3,C1EX4,C1MOD,CBP,CC1,CC2,CC3,CC4,CC4EN) -esym(14,CCAP0H,CCAP0L,CCAP1H,CCAP1L,CCAP2H,CCAP2L,CCAP3H,CCAP3L,CCAP4H,CCAP4L,CCAPM0) -esym(14,CCAPM1,CCAPM2,CCAPM3,CCAPM4,CCEN,CCF0,CCF1,CCF2,CCF3,CCF4,CCH1) -esym(14,CCH2,CCH3,CCH4,CCL1,CCL2,CCL3,CCL4,CCON,CEX0,CEX1,CEX2) -esym(14,CEX3,CEX4,CF,CF1,CH,CH1,CIN,CL,CL1,CLK,CM0) -esym(14,CM1,CM2,CM3,CM4,CM5,CM6,CM7,CMEN,CMH0,CMH1,CMH2) -esym(14,CMH3,CMH4,CMH5,CMH6,CMH7,CMI0,CMI1,CMI2,CML0,CML1,CML2) -esym(14,CML3,CML4,CML5,CML6,CML7,CMOD,CMSEL,COUT,CPRL2,CP_RL2,CR) -esym(14,CR0,CR1,CRC,CRCE,CRCH,CRCL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2L) -esym(14,RCLK,RD,RDN,REN,RFIFO,RFNE,RI,RS0,RS1,RSTAT,RTE) -esym(14,RXC,RXD,S0BUF,S0CON,S1ADR,S1BUF,S1CON,S1DAT,S1REL,S1STA,SADDR) -esym(14,SADEN,SARH0,SARH1,SARL0,SARL1,SBUF,SCON,SEPCLK,SEPCON,SEPDAT,SEPIO) -esym(14,SEPSTA,SI,SLCON,SLOTTM,SM0,SM1,SM2,SP,SSTAT,STA,STE) -esym(14,STO,SWDT,T0,T1,T2,T20V,T2CM,T2CON,T2EX,T2I0,T2I1) -esym(14,T2IE,T2IP,T2MOD,T2PS,T2R0,T2R1,T2RSE,T3,TB8,TCDCNT,TCDT) -esym(14,TCLK,TCON,TDN,TEN,TF0,TF1,TF2,TFIFO,TFNF,TH0,TH1) -esym(14,TH2,TI,TL0,TL1,TL2,TM2CON,TM2IR,TMH2,TML2,TMOD,TR0) -esym(14,TR1,TR2,TSTAT,TXC,TXD,UR,WDT,WDTCON,WDTDIS,WDTH,WDTL) -esym(14,WDTLB,WDTREL,WDTUB,WR,XPAGE,SRELL,SYSCON,SRELH,ADDATH,ADDATL) // The following functions exhibit variable return modes. // That is, they may equally-usefully be called for a value // as called just for their effects. Accordingly we inhibit // Warning 534 for these functions. // Feel free to add to or subtract from this list. -esym(534,close,creat,fclose,fprintf,fputc) -esym(534,fputs,fscanf,fseek,fwrite,lseek,memcpy,memmove,memset) -esym(534,printf,putchar,puts,scanf,sprintf,sscanf,strcat,strcpy) -esym(534,strncat,strncpy,unlink,write)