Re: [cc65] Feature request for auto-export labels

Date view Thread view Subject view

From: David Holz (davidh_at_otterspace.com)
Date: 2003-09-04 14:33:03


From: "Ullrich von Bassewitz" <uz_at_musoftware.de>
> This is a very, very bad idea. There are lots of files using label names
"L1",
> "L2", "loop" and so on. Exporting all these labels would result in lots of
> duplicate identifiers in the linker.

This option would be at the assembler level so it would be optionally
enabled per-file and wouldn't do anything to the labels used in c64.o and
other existing sources.  Besides, I don't use global labels like that, and
neither should anybody else.  All of my labels that use common names are
inside .proc/.endproc nestings, hence the requested option wouldn't export
them.

Also, my programming style is usually to have lots of smaller files so I
need to throw in a lot of exports manually to get it to link.  Having
auto-export of non-scoped labels would save me a lot of work in linking
together my routines, either via command-line option, or .AUTOEXPORT control
command.  I'm on a single large file right now that somebody else wrote, but
I normally take the multi-file approach with my own stuff.

> Why not use debug information?

I tried various settings, and 2.9.1 doesn't seem to put anything more in the
VICE listing with -g enabled than without.  I might have done something
wrong, but if the options are going to change, there's no point in trying to
get the old way working.  I also did some of my own source tweaks (nothing
to do with the labels), which is why I'm not at 2.9.2 yet.

> BTW: The VICE label file will go for the next release, so please don't use
it
> for anything important.

Hey, as long as the new options throw as much info as possible at VICE, I'm
happy. :)

-- 
White Flame (aka David Holz)
http://www.white-flame.com/

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-09-04 14:23:00 CEST