comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: right compilation unit for C as main?
Date: Wed, 19 Dec 2012 11:31:46 -0500
Date: 2012-12-19T11:31:46-05:00	[thread overview]
Message-ID: <wcc7goeype5.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: lypq26yc7s.fsf@pushface.org

Simon Wright <simon@pushface.org> writes:

> Robert A Duff <bobduff@shell01.TheWorld.com> writes:
>
>> Tasks can also be created during library-package elaboration,
>> which is called from adainit.
>
> This is one of the few ways I've managed to cause elaboration-order
> problems with GNAT's default elaboration order algorithm.

Yes, that's a problem.  One solution is to use pragma
Partition_Elaboration_Policy, so library level tasks are
not activated until after all the library units have been
elaborated.

- Bob



  parent reply	other threads:[~2012-12-19 16:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 15:02 right compilation unit for C as main? Patrick
2012-12-18 15:28 ` Brian Drummond
2012-12-18 15:42   ` Patrick
2012-12-18 17:13   ` Robert A Duff
2012-12-18 23:04     ` Brian Drummond
2012-12-19  3:04     ` Simon Wright
2012-12-19  8:00       ` Niklas Holsti
2012-12-19 16:31       ` Robert A Duff [this message]
2012-12-18 17:14 ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox