Re: [cc65] Overflows in signed comparisions

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-10-11 17:14:08


On Saturday 11 October 2003 16:35, Ullrich von Bassewitz wrote:

> limits:
>     Works ok now, it was the type casting fixed yesterday I think.

yeah i thought so :)

> sub2:
>     This is an error in the C code: If you want signed chars, you will have
>     to say so explicitly. The defaults for gcc (signed chars) and cc65
>     (unsigned chars) are different, which explains the failures.
>     There are still differences in the output (no failures), but these are
>     caused by the different int sizes.

ah ok, could you mail me your modified files? (i'll fix the remaining probs then)

weird though...thats one test taken from sdcc and i thought that one would be
using unsigned chars by default too.... oh well :=)

> rotate5:
>     Error in cc65, is fixed now.

great :)

> compare4:
>     Problem with the C code, see sub2.

same as above - mail me your changes if any :=)

> cq714:
> cq714b:
>     Did not link correctly. The routine to restore registers variables
>     may emit code that relies on
>
>         sta     abs,y
>
>     wraping around zero if many auto variables are used (how many exactly
>     depends on the location of the registers in the zero page and is
> therefore platform dependent). Since this code will always fail on the
> 65816, I will have to change the generated code. A workaround is to remove
> the register declarations for the variables, without these, the tests run
> ok.

ok, that makes sence.... i enabled register variables in the tests just 
recently :)

> yacc:
>     Seems to run forever. Does it need so much time or is this the bug?

thats the bug :=) well i think so atleast, it shouldnt take long to evaluate
a small formula (check the input file). btw i think this one did also work
some time ago (maybe check with 2.9.2 or sth), might fail due to to some changes
made recently.... however it may also simply be to large to run on the c64 
(it was the case with a few other tests before i splitted them).

gpz

off for some C64 LAN action tonite... :=P

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-11 17:19:32 CEST