knowledge-database (beta)

Current group: codewarrior.embedded

Re: Incorrect code in RTSHC08.C library

Re: Incorrect code in RTSHC08.C library  
StructureUnionWarrior
From:StructureUnionWarrior
Subject:Re: Incorrect code in RTSHC08.C library
Date:Tue, 18 Jan 2005 00:25:17 GMT
Did you use a default: statement with your switch statement?
"DS" wrote in message
news:Dkaed.15362$5b1.2564@newssvr17.news.prodigy.com...
> Thank you. I will send you a code example.
>
> I don't have 3.1 to try.
>
> To get around the problem, I have already turned off this optimization
with
> the options you described.
>
>
>
>
> "Erich Styger" wrote in message
> news:clb2jg$evs$1@newshost.mot.com...
> > This is so far an unknown problem.
> >
> > Did you try with CW08 V3.1 as well.
> >
> > I appreciate if you could pass an example to support
> > (support@metrowerks.com) (if you have a support contract). You can as
well
> > pass it to me and I will look into it (e s t y g e r _at_ metrowerks dot
> > com) (_at_ => @, dot => ., no spaces).
> >
> > Note that there compiler options so you can control the switch table
> > generation:
> >
> > -CswMaxLF Maximum load factor for switch tables (-CswMaxLF<0..100>
> > -CswMinLB Minimum number of labels for switch tables
> (-CswMinLB)
> > -CswMinLF Minimum load factor for switch tables (-CswMinLF<0..100>
> > -CswMinSLB Minimum number of labels for switch search tables
> > (-CswMinSLB)
> > You may use them to control if a search table shall be generated at all.
> >
> > Thanks,
> > Erich
> >
> > "DS" wrote in message
> > news:BCSdd.10706$5b1.10217@newssvr17.news.prodigy.com...
> > > In Codewarrior for HC08:
> > >
> > > I have a "switch" statement which optimizes to a number of calls into
> the
> > > RTSHC08 library functions "_Jump_Table_Addr" and
"_Search_Table_8_Addr".
> > > The "_Search_Table_8_Addr" function is wrong. If the value that is
> being
> > > searched for is outside the table, the code loops forever through
memory
> > > until it just happens to find the searched for value. Then it jumps
to
> > the
> > > address represented by the next two bytes.
> > >
> > > This problem is in both version 2 and 3 of Codewarrior.
> > >
> > > Anybody else notice this? Is there a list of known bugs in the
library?
> > >
> > >
> > >
> > > DS
> > >
> > >
> >
> >
>
>
   

Copyright © 2006 knowledge-database   -   All rights reserved