* src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
to gplink to disable processor mismatch warning and to allow
the use of devices with only aliased (shared) memory banks,
(_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4371
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2006-09-08 Raphael Neider <rneider AT web.de>
+
+ * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
+ * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
+ to gplink to disable processor mismatch warning and to allow
+ the use of devices with only aliased (shared) memory banks,
+ (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
+
2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
* doc/sdccman.lyx: Some re-formating plus example on using
*/
static const char *_linkCmd[] =
{
- "gplink", "$l", "-o \"$2\"", "\"$1\"", "$3", NULL
+ "gplink", "$l", "-w", "-r", "-o \"$2\"", "\"$1\"", "$3", NULL
};
static const char *_asmCmd[] =
*
*/
- sprintf(lfrm, "{linker} {incdirs} {sysincdirs} {lflags} -o {outfile} {user_ofile} {spec_ofiles} {ofiles} {libs}");
+ sprintf(lfrm, "{linker} {incdirs} {sysincdirs} {lflags} -w -r -o {outfile} {user_ofile} {spec_ofiles} {ofiles} {libs}");
shash_add(&linkValues, "linker", "gplink");
* {linker} {incdirs} {lflags} -o {outfile} {spec_ofiles} {ofiles} {libs}
*
*/
- sprintf(lfrm, "{linker} {incdirs} {lflags} -o {outfile} {user_ofile} {ofiles} {spec_ofiles} {libs}");
+ sprintf(lfrm, "{linker} {incdirs} {lflags} -w -r -o {outfile} {user_ofile} {ofiles} {spec_ofiles} {libs}");
shash_add(&linkValues, "linker", pic16_linkCmd[0]);
}
fprintf (of, "\tlist\tp=%s\n",&name[1]);
+ if (pic16_mplab_comp) {
+ // provide ACCESS macro used during SFR accesses
+ fprintf (of, "\tinclude <p%s.inc>\n", &name[1]);
+ }
if(!pic16_options.omit_configw) {
pic16_emitConfigRegs(of);
*/
const char *pic16_linkCmd[] =
{
- "gplink", "$l", "-o \"$2\"", "\"$1\"","$3", NULL
+ "gplink", "$l", "-w", "-r", "-o \"$2\"", "\"$1\"","$3", NULL
};