From: sandeep Date: Wed, 30 Jan 2002 04:17:24 +0000 (+0000) Subject: 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=sidebyside;h=587fd25e7fde0204a1ff6b2fb99ee58866c490ab;p=fw%2Fsdcc 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update 2) preprocessing done AFTER port->finalizeoptions . This allows ports to set preprocessor defines (depending on options) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1865 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 3dfa2fc7..5c03a511 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -211,7 +211,9 @@ optionsTable[] = { { 0, "--all-callee-saves", &options.all_callee_saves, "callee will always save registers used" }, { 0, "--use-accelerator", &options.useAccelerator,"generate code for DS390 Arithmetic Accelerator"}, { 0, "--stack-probe", &options.stack_probe,"insert call to function __stack_probe at each function prologue"}, - { 0, "--tini-libid", NULL," LibraryID used in -mTININative"} + { 0, "--tini-libid", NULL," LibraryID used in -mTININative"}, + { 0, "--protect-sp-update", &options.protect_sp_update,"DS390 - will disable interrupts during ESP:SP updates"}, + { 0, "--parms-in-bank1", &options.parms_in_bank1,"MCS51/DS390 - use Bank1 for parameter passing"} }; /** Table of all unsupported options and help text to display when one @@ -1540,11 +1542,11 @@ main (int argc, char **argv, char **envp) if (srcFileName) { - preProcess (envp); initMem (); port->finaliseOptions (); + preProcess (envp); initSymt (); initiCode ();