Re: [cc65] Number of object files the linker can handle?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-09-29 10:35:27
Hi!

On Thu, Sep 29, 2005 at 09:48:30AM +0300, Karri Kaksonen wrote:
> On a Linux platform everything works OK.
>
> On a Windows platform I have too many object files on the cl65 command
> line and the application does not link.
[...]
> Or can I pass in a list of object files some other way and bypass the
> command line length limitation.

All real cc65 binaries (that is: everything with the exception of ca65html,
which is a perl script) do have a builtin workaround for exactly this purpose
(all of Bills operating system had this problem, and I do really wonder, why
he isn't able to fix it in more than 20 years - maybe he's to busy counting
his money:-). If "@filename" is used on the command line, the named file is
read as a command line extension. It must contain one command line argument
per line. Leading and trailing spaces are stripped, empty lines are skipped.

So all you have to do is to generate a file containing the names of all object
files, one per line, and pass the name of the file with an '@' prepended to
ld65. Some "make" implementations do even allow to build such a file at
runtime.

And yes, this should go into the docs:-)

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 Thu Sep 29 10:35:35 2005

This archive was generated by hypermail 2.1.8 : 2005-09-29 10:35:37 CEST