Object file questions

Johannes Pfau via D.gnu d.gnu at puremagic.com
Sun Aug 17 07:16:57 PDT 2014


Am Sun, 17 Aug 2014 15:15:12 +0200
schrieb "Artur Skawina via D.gnu" <d.gnu at puremagic.com>:

> Do you see any problems with it? (Other than gcc not removing
> that dead constant load)

It's perfect for structs, but when simply declaring a Volatile!uint the
pointer dereference must be done manually, right?

----
enum TimerB = cast(Volatile!(uint)*)0xDEADBEEF;

*TimerB |= 0b1;
----

I don't think that a huge problem though, just a little bit
inconvenient.


More information about the D.gnu mailing list