Re: [cc65] Lynx target

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-02-26 01:59:14


On Wednesday 26 February 2003 01:29, Shawn Jefferson wrote:
> I'll have to do some more testing, but since you stated that no one has
> tested the 65C02 code generation... it may be that something is not
> generating properly.  I have saved three assembly listings from my programs
> compiled in different ways (one with -O, one with --cpu 65C02 and one
> without, but haven't looked at them yet.)  Most likely this stems from
> errors on my part, but I'll let you know if it's not.

mmmmh both my NES and my PCE port are currently compiled with --cpu 65C02 
-Ori. i link those files to a "none.lib" which i have compiled --cpu 65C02 
and C-file(s) also compile --cpu 65C02.

works great so far :=P

what kind of problems do you have btw? you should for example take great care 
with setting up the sections, copying them to ram accordingly, setting up the 
stack and heap etc pp.... the linker seems to behave incorrectly (well 
atleast, unexpected :=P) under certain circumstances so be sure to verify 
manully that all that works right...

> I would have expected the compiler to complain at the #include for the
> struct and #define if there were something wrong with it, but it only
> complains when I try to use the struct.

it wont complain for a "wrong" #define...you can 

#define whatthehellisthis(_bla,_blub) tschingderessabumtaetaerae!!!!! // 
carneval tv must die!

just fine, but whenever you use

whatthehellisthis(y,x);

in your code, you will get an error at this line, NOT at the line of the 
define. this is a bad thing with macros actually (and one reason not to 
overuse them "just because"). it would actually be a smart move of the 
compiler to tell the line of the macro aswell :=P *hint* :=DD

> test.c(27): Error: Identifier expected
> test.c(27): Error: Illegal function call
> test.c(27): Error: Integer expression expected
> test.c(27): Error: `;' expected
> test.c(27): Error: Expression expected
> test.c(27): Error: `;' expected
> test.c(27): Error: Expression expected
> test.c(27): Error: `;' expected
> test.c(27): Error: Expression expected
> test.c(27): Error: `;' expected
> test.c(27): Error: Expression expected
> test.c(27): Fatal: Too many errors
>
> That's my error message above when trying to use the struct.

maybe give us the code that generates this error (and related lines) aswell? 
:O)

gpz
----------------------------------------------------------------------
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-02-26 01:55:04 CET