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:
parent
d3b4efa06f
commit
dd26accc07
10 changed files with 46 additions and 27 deletions
|
@ -73,7 +73,7 @@ extern uip_ds6_nbr_t uip_ds6_nbr_cache[UIP_DS6_NBR_NB];
|
|||
extern uip_ds6_defrt_t uip_ds6_defrt_list[UIP_DS6_DEFRT_NB];
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static uint8_t
|
||||
process_request()
|
||||
process_request() CC_NON_BANKED
|
||||
{
|
||||
uint8_t len;
|
||||
uint8_t count; /* How many did we pack? */
|
||||
|
@ -251,7 +251,7 @@ process_request()
|
|||
PROCESS(viztool_process, "Network Visualization Tool Process");
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
tcpip_handler(void)
|
||||
tcpip_handler(void) CC_NON_BANKED
|
||||
{
|
||||
if(uip_newdata()) {
|
||||
memset(buf, 0, VIZTOOL_MAX_PAYLOAD_LEN);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue