Hi Kiste,

I can confirm there's something wrong with arrays. I think. Maybe...
Usually this kind of things ends with "oh gosh I'm so stupid I forgot blah
blah", so let's wait :)

FWIW, continuing my investigation, I still did not find the bug in my
program, but I can report the exact same program compiled with jalv24o vs.
last jalv24q-beta doesn't give the same result at all:

 - 24o: prints lots of things as expected (lots of serial print) but some
values are wrong (assuming a bug in my program)
 - 24q: just print few things...

Well I can't go into details for now

Cheers,
Seb


On 1 June 2013 13:09, Oliver Seitz <[email protected]> wrote:

>
> Hi Seb!
>
> A problem I had with jalv24p should be solved now, but it may still be
> buggy?
>
> Address calculation was wrong, if inline functions were used, so
>
> var byte counter
> var byte array [20]
> ...
> array[counter*3]=10
>
> Here, the value 10 might be written anywhere, even way outside the array.
> (on pic18 cores, as on smaller cores this might not be an inline function.)
>
> var byte counter_3
> counter_3=counter*3
> array[counter_3]=10
>
> This is a workaround and always wrote to the right address.
>
> Greets,
>
> Kiste
>
>
>
>   ------------------------------
>  *Von:* Sebastien Lelong <[email protected]>
> *An:* "[email protected]" <[email protected]>
> *Gesendet:* 10:27 Samstag, 1.Juni 2013
> *Betreff:* [jallib] jalv24q and arrays, feedback ?
>
> Hi guys,
>
> I'm testing last jalv24q with a library dev, and I observe very strange
> behavior with arrays. One array, a buffer, is defined in the lib, is filled
> though procedure calls, then read back on user program. Value can
> "sometimes" be different (read properly in the lib, not in program). Weird.
> When I track down, values are coherent through all the program, but there
> were no reason, really, that they would be different between what's in the
> lib and what's in the program. I used serial to debug and print values.
>
> Obviously I can't identify this accurately, I guess this is just a bug in
> my lib and/or program, still, very strange, I was wondering if someone had
> the same kind of things, doubting about this ? Erratic behavior, how
> weird...
>
> Cheers,
> Seb
>
> --
> Sébastien Lelong
>
>  --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/jallib?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>    --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/jallib?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Sébastien Lelong

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


Reply via email to