when I compile the following code, ep_bdt is not generated. I have to add the dummy function below to make it works.
It seems really strange : such a global variable could be used in an other module, so it has to be generated even if not used in the current module.
command used : sdcc -mpic16 -p18f4455 -c file.c
SDCC version : SDCC : pic16 2.6.1 #4471 (Nov 12 2006) (UNIX)
/* Buffer descriptors Table */
volatile int __at (0x400) ep_bdt;
ep_bdt; // makes the compiler happy !