Hi Kurt,
It looks like you found a bug. The reason it only
complains about the flag in main is because it's
optimized away in test. Somehow SDCC forgets to allocate
the space for the local bit variable. If you make it
static or volatile it does get an address. And as you
found out also when i
I'm running sdcc V2.9.2 on Windows XP from build
sdcc-20090817-5492-setup.exe.
When I define a bit variable in a function, compile functions separately,
then link together I get a linker warning that the global variable
referenced by the module is undefined.
?ASlink-Warning-Undefined Global '_