git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@211
4a8a32a2-be11-0410-ad9d-
d568d2c75423
int nopeep : 1 ; /* no peep hole optimization */
int asmpeep : 1 ; /* pass inline assembler thru peep hole */
int debug : 1 ; /* generate extra debug info */
int nopeep : 1 ; /* no peep hole optimization */
int asmpeep : 1 ; /* pass inline assembler thru peep hole */
int debug : 1 ; /* generate extra debug info */
+ int nodebug : 1 ; /* Generate no debug info. */
int stackOnData:1 ; /* stack after data segment */
int noregparms: 1 ; /* do not pass parameters in registers */
int c1mode : 1 ; /* Act like c1 - no pre-proc, asm or link */
int stackOnData:1 ; /* stack after data segment */
int noregparms: 1 ; /* do not pass parameters in registers */
int c1mode : 1 ; /* Act like c1 - no pre-proc, asm or link */
continue;
/* print extra debug info if required */
continue;
/* print extra debug info if required */
- if (options.debug || sym->level == 0) {
+ if ((options.debug || sym->level == 0) && !options.nodebug) {
cdbSymbol(sym,cdbFile,FALSE,FALSE);
cdbSymbol(sym,cdbFile,FALSE,FALSE);
/* if is has an absolute address then generate
an equate for this no need to allocate space */
if (SPEC_ABSA (sym->etype)) {
/* if is has an absolute address then generate
an equate for this no need to allocate space */
if (SPEC_ABSA (sym->etype)) {
- if (options.debug || sym->level == 0)
+ if ((options.debug || sym->level == 0) && !options.nodebug)
fprintf (map->oFile," == 0x%04x\n",SPEC_ADDR (sym->etype));
fprintf (map->oFile, "%s\t=\t0x%04x\n",
fprintf (map->oFile," == 0x%04x\n",SPEC_ADDR (sym->etype));
fprintf (map->oFile, "%s\t=\t0x%04x\n",
}
else {
/* allocate space */
}
else {
/* allocate space */
- if (options.debug || sym->level == 0)
+ if ((options.debug || sym->level == 0) && !options.nodebug)
fprintf(map->oFile,"==.\n");
fprintf (map->oFile, "%s:\n", sym->rname);
fprintf (map->oFile, "\t.ds\t0x%04x\n", (unsigned int)getSize (sym->type) & 0xffff);
fprintf(map->oFile,"==.\n");
fprintf (map->oFile, "%s:\n", sym->rname);
fprintf (map->oFile, "\t.ds\t0x%04x\n", (unsigned int)getSize (sym->type) & 0xffff);
addSetHead (&publics, sym);
/* print extra debug info if required */
addSetHead (&publics, sym);
/* print extra debug info if required */
- if (options.debug || sym->level == 0) {
+ if ((options.debug || sym->level == 0) && !options.nodebug) {
cdbSymbol(sym,cdbFile,FALSE,FALSE);
cdbSymbol(sym,cdbFile,FALSE,FALSE);
/* if it has an absolute address */
if (SPEC_ABSA (sym->etype)) {
/* if it has an absolute address */
if (SPEC_ABSA (sym->etype)) {
- if (options.debug || sym->level == 0)
+ if ((options.debug || sym->level == 0) && !options.nodebug)
fprintf(code->oFile," == 0x%04x\n", SPEC_ADDR (sym->etype));
fprintf (code->oFile, "%s\t=\t0x%04x\n",
fprintf(code->oFile," == 0x%04x\n", SPEC_ADDR (sym->etype));
fprintf (code->oFile, "%s\t=\t0x%04x\n",
SPEC_ADDR (sym->etype));
}
else {
SPEC_ADDR (sym->etype));
}
else {
- if (options.debug || sym->level == 0)
+ if ((options.debug || sym->level == 0) && !options.nodebug)
fprintf(code->oFile," == .\n");
/* if it has an initial value */
fprintf(code->oFile," == .\n");
/* if it has an initial value */
continue;
/* print extra debug info if required */
continue;
/* print extra debug info if required */
- if (options.debug || sym->level == 0) {
+ if ((options.debug || sym->level == 0) && !options.nodebug) {
cdbSymbol(sym,cdbFile,FALSE,FALSE);
cdbSymbol(sym,cdbFile,FALSE,FALSE);
an equate for this no need to allocate space */
if (SPEC_ABSA (sym->etype)) {
an equate for this no need to allocate space */
if (SPEC_ABSA (sym->etype)) {
- if (options.debug || sym->level == 0)
+ if ((options.debug || sym->level == 0) && !options.nodebug)
fprintf (afile," == 0x%04x\n",SPEC_ADDR (sym->etype));
fprintf (afile, "%s\t=\t0x%04x\n",
fprintf (afile," == 0x%04x\n",SPEC_ADDR (sym->etype));
fprintf (afile, "%s\t=\t0x%04x\n",
SPEC_ADDR (sym->etype));
}
else {
SPEC_ADDR (sym->etype));
}
else {
- if (options.debug || sym->level == 0)
+ if ((options.debug || sym->level == 0) && !options.nodebug)
fprintf(afile,"==.\n");
/* allocate space */
fprintf(afile,"==.\n");
/* allocate space */
options.stackAuto = 1;
options.mainreturn = 1;
options.noregparms = 1;
options.stackAuto = 1;
options.mainreturn = 1;
options.noregparms = 1;
/* first the options part */
options.intlong_rent = 1;
/* first the options part */
options.intlong_rent = 1;