Re: [cc65] ca65: Setting segment name from cmdline?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-01-26 20:07:05
Hi!

On Thu, Jan 26, 2012 at 05:03:23PM +0100, Oliver Schmidt wrote:
> Is there a way to define the name of the segment for i.e. code on the
> ca65 cmdline?

No, I don't know of any such way. ca65 differs somewhat from cc65 in this
respect. While cc65 does automatically place stuff into a limited number of
segments, and you can change the names of these segments, ca65 doesn't do any
automatic placement.

> In case you wonder what I'm trying to do: I want to place the same
> code several times in the output file. Just the run address differs
> for each variant. My idea was to setup several segments in my linker
> config and run ca65 several times on the same source but different
> cmdlines in order to produce several .o files.

Using a macro has already been mentioned. Using Perl or sed is another
alternative.

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 Jan 26 20:07:12 2012

This archive was generated by hypermail 2.1.8 : 2012-01-26 20:07:15 CET