views:

84

answers:

1

When using the CCS compiler's multiple compilation units feature, I stumbled upon what seems to be a pretty serious bug:

The setup is a header file defining a #bit in a #byte, two compilation units #include-ing the header file and a function referring to said #bit.

It seems that the function's code (specifically using the correct address to said #bit) depends on said function resides in the same compilation unit as the main() function.

Any ideas?

+1  A: 

For a compiler, CCS has a large incidence of bugs (I've worked with it for years). They also release updated versions about once a month. It may easily be a bug, multiple compilation units is a relatively new feature in the CCS compiler.

It might help to mirror your question on CCS' peer support forum and to e-mail their support.

Nick Alexeev