#define OPTION_NOPEEP "-no-peep"
#define OPTION_ASMPEEP "-peep-asm"
#define OPTION_DEBUG "-debug"
+#define OPTION_NODEBUG "-nodebug"
#define OPTION_VERSION "-version"
#define OPTION_STKAFTRDATA "-stack-after-data"
#define OPTION_PREPROC_ONLY "-preprocessonly"
continue;
}
+ if (strcmp(&argv[i][1],OPTION_NODEBUG) == 0) {
+ options.nodebug = 1;
+ continue;
+ }
+
if (strcmp(&argv[i][1],OPTION_NOREGPARMS) == 0) {
options.noregparms = 1;
continue;
options.xstack_loc = options.xdata_loc ;
/* if debug option is set the open the cdbFile */
- if (/* options.debug && */ srcFileName) {
+ if (!options.nodebug && srcFileName) {
sprintf(cdbfnbuf,"%s.cdb",srcFileName);
if ((cdbFile = fopen(cdbfnbuf,"w")) == NULL)
werror(E_FILE_OPEN_ERR,cdbfnbuf);
fprintf(lnkfile,"%s\n",linkOptions[i]);
/* standard library path */
- switch(options.model)
- {
+ if (strcmp(port->target,"ds390")==0) {
+ c="ds390";
+ } else {
+ switch(options.model)
+ {
case MODEL_SMALL:
- c = "small";
- break;
+ c = "small";
+ break;
case MODEL_LARGE:
- c = "large";
- break;
+ c = "large";
+ break;
case MODEL_FLAT24:
- c = "flat24";
- break;
+ c = "flat24";
+ break;
default:
- werror(W_UNKNOWN_MODEL, __FILE__, __LINE__);
- c = "unknown";
- break;
+ werror(W_UNKNOWN_MODEL, __FILE__, __LINE__);
+ c = "unknown";
+ break;
+ }
}
fprintf (lnkfile,"-k %s/%s\n",SDCC_LIB_DIR/*STD_LIB_PATH*/,c);
fprintf (lnkfile,"-k %s\n",libPaths[i]);
/* standard library files */
+ if (strcmp(port->target, "ds390")==0) {
+ fprintf (lnkfile,"-l %s\n",STD_DS390_LIB);
+ }
fprintf (lnkfile,"-l %s\n",STD_LIB);
fprintf (lnkfile,"-l %s\n",STD_INT_LIB);
fprintf (lnkfile,"-l %s\n",STD_LONG_LIB);
{
/* turn all optimizations off by default */
memset(&optimize,0,sizeof(struct optimize));
-
+
/*printVersionInfo ();*/
_findPort(argc, argv);