Re: [cc65] Another linker Q/R

From: <silverdr1wfmh.org.pl>
Date: 2013-02-21 23:20:19
On 2013-02-21, at 16:20, Ullrich von Bassewitz wrote:

>> Question: (I know it might be "tricky" to say the least) would it be
>> possible to have somehow names of those files placed/replace placholders in
>> the code upon linking? I am looking for a DRY solution to a common problem of
>> ever evolving file naming scheme.
> 
> Not sure if I get that right: You want the linker to define a string in static
> storage that is accessed from somewhere in the code? If so, this would be
> rather difficult.

Now I am not sure if I get it right but I think more or less so :-) I would like to define the names in the linker config and only in the linker config. So that whenever the file names change, one doesn't have to hunt through all the files to change those. Some kind of mechanism would be needed to allow this. Like predefined placeholder symbol or something. One could then reference a symbol like e.g. __MYMEMORYENTRY_FILENAME__, which would be replaced upon linking with appropriate string and (again for a good example) e.g. __MYMEMORYENTRY_FILENAME_LENGTH__ would contain what it says. This more or less means that linker would have to place the string where the symbol is so that the file names defined in the linker config would be accessible from the code.

-- 
SD!----------------------------------------------------------------------
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 Feb 21 23:20:37 2013

This archive was generated by hypermail 2.1.8 : 2013-02-21 23:20:41 CET