On Wed, Nov 12, 2014 at 2:53 AM, Taylor R Campbell <campb...@mumble.net> wrote: > Date: Tue, 11 Nov 2014 17:42:51 +0000 > From: Antti Kantee <po...@iki.fi> > > 2: init_main ordering > > I think that "code reading" is an absolute requirement there, i.e. we > should be able to know offline what will happen at runtime. Maybe that > problem is better addressed with an offline preprocessor which figures > out the correct order? > > rcorder(8)...?
I'll imlement tsort in config(1), because config(1) knows module dependency. Module objects will be ordered when linking, that is also reflected in the order of constructors. I believe this is good enough for most cases.