Sujet : Re: C23 thoughts and opinions
De : nospam (at) *nospam* please.ty (jak)
Groupes : comp.lang.cDate : 01. Jun 2024, 02:37:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3du01$2fej5$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2
bart ha scritto:
I can see that the first two can be subtracted to give the sizes of the data, which is 70 or 0x46. 0x46 is the last byte of the address of _size, so what's happening there? What's with the crap in bits 16-47?
I can extract the size using:
printf("%d\n", (unsigned short)&_binary_hello_c_size);
But something is not right. I've also asked what is the point of the -size symbol if you can just do -end - -start, but nobody has explained.
typedef unsigned char uchar;
extern uchar _binary_hello_c_size[];
long hello_c_size = _binary_hello_c_size - (uchar *)0;