From: frief Date: Sat, 13 Dec 2003 23:01:10 +0000 (+0000) Subject: made clearing of memory the default. There is an environment variable SDCC_NOGENRAMCL... X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=f3e03359e8f5b5a31abec817ce85c0b373602546;p=fw%2Fsdcc made clearing of memory the default. There is an environment variable SDCC_NOGENRAMCLEAR to turn this off. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3054 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/mcs51/main.c b/src/mcs51/main.c index 24247f2a..20f721fe 100644 --- a/src/mcs51/main.c +++ b/src/mcs51/main.c @@ -198,7 +198,7 @@ static void _mcs51_genXINIT (FILE * of) { fprintf (of, "00003$:\n"); fprintf (of, "; _mcs51_genXINIT() end\n"); - if (getenv("SDCC_GENRAMCLEAR")) _mcs51_genRAMCLEAR (of); + if (!getenv("SDCC_NOGENRAMCLEAR")) _mcs51_genRAMCLEAR (of); }