made clearing of memory the default. There is an environment variable SDCC_NOGENRAMCL...
authorfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 13 Dec 2003 23:01:10 +0000 (23:01 +0000)
committerfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 13 Dec 2003 23:01:10 +0000 (23:01 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3054 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/mcs51/main.c

index 24247f2ac17c49333238917e2abc195ac51698b3..20f721fe534220d8605a0fd1556ca03bc5151878 100644 (file)
@@ -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);
 }