From: SourceForge.net <no...@so...> - 2006-11-18 19:21:42
|
Bugs item #1598954, was opened at 2006-11-18 20:21 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1598954&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Goofy (gaufillet) Assigned to: Nobody/Anonymous (nobody) Summary: Global variable not generated Initial Comment: 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) #include <pic18fregs.h> /* Buffer descriptors Table */ volatile int __at (0x400) ep_bdt[32]; void dummy_function(void) { ep_bdt[0]; // makes the compiler happy ! } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1598954&group_id=599 |