Re: Writing an Emulator

From: Bill Godfrey (bill-godfrey_at_sunny-coventry.invalid)
Date: 12/01/03


Date: 01 Dec 2003 14:09:34 GMT

ruse@webmail.co.za (goose) wrote:

> I cant find the bits of the c99 standard that mandates anything
> about the internal representation of *any* data type. C&V, please?

6.2.5 para 26

It does not specify the exact bit arrangements, but it does require that
void* has the same representation a pointer to a character type.

I'll concede that it does not specify which of three character types is
refered, nor can I justify that the standard requires the three types of
pointer-to-character (char*, unsigned char* and signed char*) are required
to have the same representation.

In this day and age though, you shouldn't need to assume that void* and
char* have the same internal representation.

Bill, bad comma-dian.



Relevant Pages