Validity of cast(void*)size_t.max

Kagamin spam at here.lot
Tue Mar 6 06:08:03 UTC 2018


On Monday, 5 March 2018 at 18:28:43 UTC, Steven Schveighoffer 
wrote:
> Note, I think the error is bogus, you should be able to create 
> hard-coded addresses of data at compile time -- I'm not sure 
> how you would do hardware registers otherwise.

I'd do them as extern variables, it wouldn't be nice to have them 
as pointers.
extern int reg1;
And use linker option to define address: --defsym reg1=0x1111


More information about the Digitalmars-d-learn mailing list