do not compile with stack auto, change functions to be nonreentrant, use fixed parameters

- frees up ~4KB of code space
This commit is contained in:
Jeff Wang
2019-05-02 03:27:01 -04:00
parent 6399cbf44f
commit 0049f3df98
15 changed files with 121 additions and 104 deletions

View File

@ -24,7 +24,6 @@ void _delay_us(uint8_t us);
void backlight_off(void);
char* u32str(uint32_t x, char* buf, uint8_t base);
#ifdef __linux__
@ -36,11 +35,13 @@ char* u32str(uint32_t x, char* buf, uint8_t base);
#endif
#if defined(DESKTOP) || defined(IS_ECLIPSE)
char* u32str(uint32_t x, char* buf, uint8_t base);
#define __xdata
#define __idata
#define __sfr
#define __at uint8_t*
#define SDCC_ISR(isr, reg)
#define __using(x)
#define BACKLIGHT_ON()
#define TURN_OFF()
#else