Placing variable/array in a particular section
Jens Bauer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 5 03:58:39 PDT 2015
On Sunday, 5 April 2015 at 10:16:10 UTC, Johannes Pfau wrote:
>> > On 4/04/2015 3:08 a.m., Jens Bauer wrote:
>
> It's possible to use gcc.attribute with custom mini-runtimes.
> You need the gcc/attribute.d file but you can simply copy/paste
> it from
> druntime[1], there are no dependencies.
After having done a number of attribute tests for a few hours
yesterday, I think minlibd has all the attribute support that it
possibly can.
It's attribute.d is identical to the standard runtime file.
> I'll push support for the section attribute in 1~2 hours.
> (waiting for the testsuite ;-)
That will be absolutely awesome - and also a big breakthrough. :)
I will test and provide feedback as soon as I can.
I've added a comment to [Bug 172] explaining the importance of
having the weak alias support as well. Of course, section is the
most important, but weak alias is also widely used with exception
vectors.
If attribute support for this is also implemented, I think
there's no excuse anymore for using D on microcontrollers. ;)
More information about the Digitalmars-d-learn
mailing list