Re: [cc65] quickly getting the adress from somewhere in the code

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-09-27 21:13:28
On Mon, Sep 27, 2004 at 11:32:07AM +0200, MagerValp wrote:
> But would it be hard to make .error, .warning etc
> output a list of expressions instead of just a string?

.error and .waring are not much work, because they are commands of the
assembler. But the assembler doesn't have the necessary information, so
changing .assert or using another command is necessary. Passing a list of
expressions together with a format string to the linker is more work. It has
to be generated by the assembler, stored in the object file, read by the
linker and stored somewhere in memory until it is used later. Since the number
of expressions is not limited, all this must be done with a list of
expressions with unknown size. After all it's probably half a day of work.
Currently (that is, while not more people are complaining:-) I do consider
this too much for a convenience thing. The information about every symbol is
available in the debug file, even if you don't export anything. Using grep or
a little perl magic, it should be easy to retrieve and process the data.

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 Mon Sep 27 21:13:32 2004

This archive was generated by hypermail 2.1.8 : 2004-09-27 21:13:41 CEST