Re: Undefined Reference to volatileLoad/Store Instrinsics

2017-07-18 Thread Mike via D.gnu
On Tuesday, 18 July 2017 at 20:54:26 UTC, Iain Buclaw wrote: Just after module core.bitop; line, add: nothrow: @safe: @nogc: Thanks, and sorry for the foolish mistake. I'm getting a working binary now. Well, at least my status LED is blinking and I see my LCD screen trying to do something,

Re: Undefined Reference to volatileLoad/Store Instrinsics

2017-07-18 Thread Iain Buclaw via D.gnu
On 18 July 2017 at 22:41, Mike via D.gnu wrote: > > Analyzing the object file I see this: arm-none-eabi-nm binary/fimrware.o > > U _D4core5bitop12volatileLoadFPhZh > U _D4core5bitop12volatileLoadFPkZk > U _D4core5bitop12volatileLoadFPtZt > U _D4core5bitop13volatileStoreFPhhZv > U _D4core5bitop13vo

Undefined Reference to volatileLoad/Store Instrinsics

2017-07-18 Thread Mike via D.gnu
I'm currently try to replace my old volatileLoad/Store functions that utilized a `shared` bug as an alternative to `volatile`. The used to look like this: @inline T volatileLoad(T)(T* a) { asm { "" ::: "memory"; }; return *cast(shared T*)a; } @inline void volatileStore(T)(T* a, in T v)