Re: Variables & kind of memory

2022-04-23 Thread Stanislav Blinov via Digitalmars-d-learn
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. Th

Re: Variables & kind of memory

2022-04-23 Thread Alain De Vos via Digitalmars-d-learn
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`

Re: Variables & kind of memory

2022-04-23 Thread Salih Dincer via Digitalmars-d-learn
On Saturday, 23 April 2022 at 17:14:22 UTC, Alain De Vos wrote: 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 ? Maybe it'll be helpful. The following output is from another compiler: ``` GLV:address :14eb4