>> unsigned int debug = 1234;
>> float julianday = 6116.0;
>>
>> void main(void) {
>>      float x = 6116.0;
>>
>>      debug = julianday;
>>      // expect 6116, obtain a vastly different (arbitrary?) number
>> }

[...]
> If this leaves the correct value in debug, the problem is with
> initialization of global variables.

I seem to remember that the SDCC PIC14 port does not have any working
initialization of global variables.

Maarten

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to