Re: [cc65] Fwd: Bug in cl65 (?)

From: Oliver Schmidt <ol.sc1web.de>
Date: 2010-04-22 23:28:32
Hi Uz,

> Ok, this is the reason for the "bug" (in your last mail). cl65 (as all other
> tools) parse the command line from left to right. As soon as a file name is
> reached, the corresponding subcommand is executed. So in your case, -o and its
> argument are actually ignored.

I see. Thanks for pointing out! If this isn't in the docs it deserves
one of the first entries in the wiki...

>> would translate to
>>
>>   cc65 src/aaa.c -o obj/bbb.s
>>   ca65 obj/bbb.s -o obj/bbb.o
>>
>> for two reasons:
>>
>> 1. There would be no write access to the source directory (probably
>> even readonly).
>> 2. The potentially generated .u file would appear as obj/bbb.u
>> (matching best the user's expectation).
>
> It's difficult for a tool to try to read the masters mind, and therefore I'm
> not sure if not someone else would argue different.

As long as sed-based post-processing of dependency files is necessary
anyway I don't consider this too important...

But anyway I'd like to hear those arguments - and answer them ;-)

Regards,
Oliver
----------------------------------------------------------------------
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 Apr 22 23:29:12 2010

This archive was generated by hypermail 2.1.8 : 2010-04-22 23:29:14 CEST