Variables & kind of memory

Alain De Vos devosalain at ymail.com
Sat Apr 23 17:14:22 UTC 2022


On Saturday, 23 April 2022 at 10:46:42 UTC, Stanislav Blinov 
wrote:
> On Saturday, 23 April 2022 at 03:41:17 UTC, Alain De Vos wrote:
>
>> Feel free to elaborate.
>
> Variables declared at module scope, and static variables in 
> function/aggregate scopes, unless also annotated as `shared` or 
> `__gshared`, are thread-local, therefore are placed in 
> thread-local storage. That's why you see difference in 
> addresses between e.g. &LV and &SLV in `main`.

Maybe i can use gdb to see more info.
This is not a gdb forum but if someone knows the commands to 
verify the segments/heap/stack ?


More information about the Digitalmars-d-learn mailing list