static variable __StackTop cannot be read at compile time even if extern?
David Nadlinger via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sun Mar 6 11:00:24 PST 2016
On 6 Mar 2016, at 18:46, Taylor Hillegeist via digitalmars-d-ldc wrote:
> I need the symbol to be ignored until linking. How do i do it?
You probably want to declare the symbol as "extern extern(C) __gshared".
However, I'm not quite sure what your code snippet is supposed to do.
What type is ISR? Are you sure you don't need to take the address of
__StackTop?
— David
More information about the digitalmars-d-ldc
mailing list