Hi Kyle,

I use compiler: jal 2.4n-beta (compiled Mar 13 2010)
and ran into a variable that is removed by the optimiser while it should not.

I put the related files in svn at \casualties\bugreport 20100405 (jpg,
sources and 2x asm - one okay, one not).

It is a pretty large program, since simplification seems to remove the
bug condition.

Compile it with line 10 of gps_converter as:

   var volatile byte GpsMsgNr;         ; ID of current message

and the program works like expected.
However, removing 'volatile' makes it fail. For some reason, the
compiler removes the
assignment of GpsMsgNr on line 146 and changes line 149
   print_byte_dec(serial_hw_data, GpsMsgNr)
into
   print_byte_dec(serial_hw_data, 0)

See jpg with visual diff view.

Joep

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to