+2004-01-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+ * as/mcs51/lkmain.c: Help about -Y option
+ * as/mcs51/lkarea.c: Fixed gcc warnings
+
2004-01-06 Bernhard Held <bernhard@bernhardheld.de>
* src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
struct sym *sp;
int j;
struct area *dseg_ap=NULL;
- struct sym *sp_dseg_s, *sp_dseg_l;
+ struct sym *sp_dseg_s=NULL, *sp_dseg_l=NULL;
for(j=0; j<256; j++) idatamap[j]=' ';
}
/*Compute the size of DSEG*/
- dseg_ap->a_addr=0;
- dseg_ap->a_size=0;
- for(j=0; j<0x80; j++) if(idatamap[j]!=' ') dseg_ap->a_size++;
- sp_dseg_s->s_addr=0;
- sp_dseg_l->s_addr=dseg_ap->a_size;
+ if(dseg_ap!=NULL)
+ {
+ dseg_ap->a_addr=0;
+ dseg_ap->a_size=0;
+ for(j=0; j<0x80; j++) if(idatamap[j]!=' ') dseg_ap->a_size++;
+ }
+ if(sp_dseg_s!=NULL) sp_dseg_s->s_addr=0;
+ if(sp_dseg_l!=NULL) sp_dseg_l->s_addr=dseg_ap->a_size;
#if 0
/*Print the memory map*/
" -i Intel Hex as file[IHX]",
" -s Motorola S19 as file[S19]",
" -j Produce NoICE debug as file[NOI]",
- " -z Produce SDCdb debug as file[cdb]",
+ " -z Produce SDCdb debug as file[cdb]",
/* "List:", */
" -u Update listing file(s) with link data as file(s)[.RST]",
"Miscellaneous:\n"
" -a [iram-size] Check for internal RAM overflow",
" -v [xram-size] Check for external RAM overflow",
" -w [code-size] Check for code overflow",
+ " -y Generate memory usage summary file[mem]",
+ " -Y [stack-size] Pack internal ram and allocate space for stack",
"End:",
" -e or null line terminates input",
0