We can now use SDCC's __nonbanked feature

This allows us to reduce CODE footprint of SDCC projects
built with --model-huge. Use carefully!

* Added a facility which allows us to enable/disable the
  feature from the CPU dir (CC_CONF_NON_BANKED_OPTIMIZATION)
* Added the CC_NON_BANKED keyword to some platform files
  (expands to __nonbanked)
* Started using this for some examples
This commit is contained in:
George Oikonomou 2012-04-01 20:07:53 +01:00
parent d3b4efa06f
commit dd26accc07
10 changed files with 46 additions and 27 deletions

View file

@ -72,7 +72,7 @@ static unsigned long irq_energest = 0;
#endif
/*---------------------------------------------------------------------------*/
static void
fade(int l)
fade(int l) CC_NON_BANKED
{
volatile int i, a;
int k, j;
@ -91,7 +91,7 @@ fade(int l)
}
/*---------------------------------------------------------------------------*/
static void
set_rime_addr(void)
set_rime_addr(void) CC_NON_BANKED
{
uint8_t *addr_long = NULL;
uint16_t addr_short = 0;