Re: [cc65] Problems with Atari zeropage variables

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-07-24 16:19:09
On Sat, Jul 23, 2005 at 01:02:40AM +0200, Maciej Witkowiak wrote:
> Isn't that because ".zeropage" is for user and his asm programs while "EXTZP"
> for standard library? Then it would be a bug in the library to use
> ".zeropage".

.zeropage is used by the compiler for the standard zeropage variables. EXTZP
is used for additional variables used by the runtime of one platform.
Variables in EXTZP are non standard and may be defined as necessary by the
platform. If a user mixes C and ASM code, and needs to define additional
zeropage variables, these have to go into an additional segment, which must be
placed somewhere using a special linker config.

On most platforms, all this is a non issue, because the space reserved for
zeropage variables is exactly big enough to just hold the standard ones.
Someone using .zeropage will have to use a non standard linker config anyway,
so he/she can also use another segment name.

Besides that, the compiler does also use the standard names for all other
segments.

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 Sun Jul 24 16:19:19 2005

This archive was generated by hypermail 2.1.8 : 2005-07-24 16:19:21 CEST