[cc65] zpsave in data segment?

From: Sidney Cadot <cadot1science-and-technology.nl>
Date: 2005-04-11 12:15:01
Hi all,

Looking through the crt0.s code of most platforms, I see that "zpsave" 
is usually declared to reside in the "data" segment.

The way I see it, "zpsave" should properly reside in the "bss" segment. 
Declaring "zpsave" in the data segment, we add zero 26 bytes to the 
executable images for no apparent reason (unlike "bss", the "data" 
segment is part of the binary image).

Indeed, most platforms declare "spsave" (which saves the S register) 
inside the BSS segment already; I can think of no good reason why there 
would be a difference between spsave and zpsave in this respect.

Best regards, Sidney

----------------------------------------------------------------------
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 Apr 11 12:17:58 2005

This archive was generated by hypermail 2.1.8 : 2005-04-11 12:18:01 CEST