Re: [cc65] Accessing linker symbols from C?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2011-11-22 15:12:56
On Tue, Nov 22, 2011 at 05:56:12AM -0800, Joseph Rose wrote:
>    I couldn't figure it out.  :(  How do I get the value of the size of a
>    segment (i.e. __BSS_SIZE__) as an integer rather than a pointer?

extern void _BSS_SIZE__;
#define BSS_SIZE ((size_t) &_BSS_SIZE__)

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 Tue Nov 22 15:13:03 2011

This archive was generated by hypermail 2.1.8 : 2011-11-22 15:13:06 CET