Re: [cc65] errors when compiling cc65 with new target

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-05-13 18:45:31
On Fri, May 13, 2005 at 09:32:01AM -0700, Andy Dannelley wrote:
> I have successfully compiled the standard version of 2.10.1 with no
> problems so I thought I would add the AIM 65 as a target.

I would suggest using the snapshot for new code, because this is were new
targets will finally go.

> It seems to compile OK until I get to the library portion of the
> compile, and here are he errors I get when compiling --

If you have the startup file and linker config, the next step would be to
write small programs to test if they work. For this purpose, you can use any
of the existing target libraries. The only thing you cannot do is to use
platform dependent functions.

> ca65: Invalid target name: `aim65'

There is no aim65 target known to the assembler/compiler/linker. You can use
the "none" target for the assembler and compiler. For the linker you must
supply your config file using the -C command line switch. If you do so, you
don't need a target spec.

> libsrc:  aim65 directory (folder) contining: aim65.inc, break.s,
> cclear.s, cgetc.s, clrscr.s, cputc.s
> crt0.s, cvline.s, getargs.s, kbhit.s, randomize.s, sysuname.s and the
> modified makefile to reflect the
> actual files used and modifications to include, .include   	"aim65.inc"
> where necessary.

How did you implement cclear, clrscr, and the other conio routine on the
aim65?

> in the /src/ld65 i have included and aim65.inc
>
> In  	/src/ld65/cfg I have the aim65.cfg
>
> In  	/src/ld65 modifications to makefile.

Adding a new target is slightly more work than just adding the config file to
the linker sources. But fortunately you don't need it for first tests if you
follow the advice above. Once you're sure that the config file works, the
easiest way is to send it to me for inclusion.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri May 13 18:45:42 2005

This archive was generated by hypermail 2.1.8 : 2005-05-13 18:45:45 CEST