Path: csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Oliver Schmidt Newsgroups: comp.sys.apple2.programmer Subject: Re: Generic question about Apple2 / cc65 debugging Date: Sat, 12 Aug 2023 20:39:25 -0000 (UTC) Message-ID: References: <20230811201326.30841582@laptop-sigfox> <20230812151206.37af6bb6@laptop-sigfox> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 12 Aug 2023 20:39:25 -0000 (UTC) Injection-Info: solani.org; logging-data="29441"; mail-complaints-to="abuse@news.solani.org" User-Agent: NewsTap/5.5 (iPhone/iPod Touch) Cancel-Lock: sha1:EedyoXeADrvxbyjwlSD2OLUgN1o= sha1:LPX2ACD7bjyKnyLRYgfhHAKSCmg= X-User-ID: eJwFwQcBADAIAzBLlFNADnv+JSwJI7jTGfR48TqXBFRyZKQEfHar9Fivaw3b3nAMK1V7jn/65w/a Xref: csiph.com comp.sys.apple2.programmer:6069 Hi Colin, > I've tried using --listing --add-source before, but I can't understand > what I'm doing wrong. Maybe it's not supposed to be used directly with > the cl65 helper: > > cl65 -t ... -o program --listing [numerous .c files] > > generates a listing for only the last c file of the list. There's one listing file for each source file. So the approach above can conceptually not work. I don't know if this works: cl65 -t ... -o program --listing a.lst a.c --listing b.lst b.c Anyhow, I'd rather create each object file individually with this: cl65 -c -t ... --listing x.lst --add-source x.c Regards, Oliver