Re: [cc65] still more k&r

Date view Thread view Subject view

From: Greg King (gngking_at_erols.com)
Date: 2002-12-29 18:36:54


-----Original Message-----
From: Christian Groessler
Date: Friday, December 27, 2002 09:30 AM
>
> I'm trying to get the Unix ed line-editor to compile with cc65.
> Please see my hacked version of the 2.11BSD ed.c on
>
> ftp://ftp.groessler.org/pub/chris/cc65/ed1.c
>
> When I try to compile it with
> cl65 -t atari -Cl ed1.c -o ed.com
> I get errors in the generated .s file:
> ...
> ed1.c(1474): Warning: Function call without a prototype
> ed1.c(1623): Warning: `sccsid' is defined but never used
> ed1.s(2482): Error #11: Too many characters
> ed1.s(6700): Error #11: Too many characters
>
> The erroneous lines contain
>         jsr     _(null)

At least you get an assembly file -- it crashes the compiler on my system!

However, removing the explicit function-indirection seems to avoid that bug:
At two places [in append() and blkio()], a function is called
through a pointer.  Delete the asterisks in those expressions.
Then, you should get a good assembly.

----------------------------------------------------------------------
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 : 2002-12-29 18:37:10 CET