git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4681
4a8a32a2-be11-0410-ad9d-
d568d2c75423
2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
+ * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
* device/lib/printf_large.c: pointer was converted to generic
pointer for mcs51 models other than model-small (Maarten noticed)
* device/lib/printf_large.c: pointer was converted to generic
pointer for mcs51 models other than model-small (Maarten noticed)
-static data char radix ;
+static __data char radix ;
static bit long_flag = 0;
static bit string_flag =0;
static bit char_flag = 0;
static bit long_flag = 0;
static bit string_flag =0;
static bit char_flag = 0;
-static char * data str ;
-static data long val;
+static char * __data str ;
+static __data long val;
/* This great loop fails with the ds390 port (2003-01-13).
/* This great loop fails with the ds390 port (2003-01-13).
*/
#if NICE_LIFO_IMPLEMENTATION_BUT_NOT_PORTABLE
*/
#if NICE_LIFO_IMPLEMENTATION_BUT_NOT_PORTABLE
-static data volatile char ch;
+static __data volatile char ch;
static bit sign;
static void pval(void)
static bit sign;
static void pval(void)
- static char data buffer[12], c;
+ static char __idata buffer[12]; /* 37777777777(oct) */
+ char __idata * stri;
_ltoa (val, buffer, radix);
_ltoa (val, buffer, radix);
- str = buffer;
- while ((c = *str++) != '\0')
- putchar (c);
+ stri = buffer;
+ while (*stri)
+ {
+ putchar (*stri);
+ stri++;
+ }