Current GDC experience and questions

Artur Skawina art.08.09 at gmail.com
Fri Mar 8 06:36:03 PST 2013


On 03/08/13 13:40, jerro wrote:
>> I tried modifying some trivial sources, which were using only
>> 'pragma(attribute, noinline)', but couldn't get them to work; the compiler keeps
>> complaining, 'cc1d: error: unknown attribute noinline'.
>> Is 'import gcc.attribute; @attribute("noinline") void f() {}' supposed to work?
> 
> It isn't. When the syntax was changed to @attribute, all the gcc attributes were disabled. If I understood correctly, the reason was that those were only meant for internal GDC use. AFAIK, noinline was removed even before that.
> 
> Iain did say something about adding supported attributes one by one as they are needed. So I guess you need to talk to him about adding noinline.

I need them all. If D is to be an alternative to C/C++ it must support everything
that's already available for those languages.
In the specific case i tested with i need @flatten to get decent performance, and
@noinline to have compile times measured in minutes and not hours (literally, as
@flatten can otherwise result in practically infinite recursive inlining).

artur


More information about the D.gnu mailing list