Placing variable/array in a particular section

Jens Bauer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 3 06:58:19 PDT 2015


On Friday, 3 April 2015 at 13:37:50 UTC, Rikki Cattermole wrote:
> On 4/04/2015 2:12 a.m., Jens Bauer wrote:
>> Is there a way of setting the target section for a variable or 
>> an array ?
>
> Supposedly gdc supports it.
>
> [0] http://wiki.dlang.org/GDC/Using_GDC Extensions->Attributes
> [1] 
> https://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html#Variable-Attributes

I tried to use some of the examples, but I got the following 
error:

src/start.d:7:10: error: module attribute is in file 
'gcc/attribute.d' which cannot be read
    import gcc.attribute;
           ^

-Am I missing some files somewhere ?


More information about the Digitalmars-d-learn mailing list