comp.lang.ada
 help / color / mirror / Atom feed
* Bootstrapping a null procedure. Seriously?!
@ 2013-03-11 10:37 Diogenes
  2013-03-11 11:26 ` Georg Bauhaus
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Diogenes @ 2013-03-11 10:37 UTC (permalink / raw)


I've been doing some binder experiments with this little gem....

procedure nullmain is

begin

  null;

end nullmain;


Been doing it to see just how many packages from the runtime have to be linked in order for the the thing to DO NOTHING!

40 packages are pulled in.

By most measures of good software design, this is WRONG.

So here's the question...

Do I need to have different a-finali.ads/.adb packages and the corresponding crt1.o implementations for every possible variation on the runtime I could ever want? I mean, seriously, it's pulling in system.string_opts; does anyone see strings in the above code?

Of course I realize this is partly due to package dependency issues, however I SHOULD be able to write my own a-finali.ads that does nothing but make a _start symbol for the system linker, right?

Tips?




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-01 16:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11 10:37 Bootstrapping a null procedure. Seriously?! Diogenes
2013-03-11 11:26 ` Georg Bauhaus
2013-03-11 21:14   ` Diogenes
2013-03-11 22:39     ` Robert A Duff
2013-03-12 12:09     ` Brian Drummond
2013-03-12 14:04       ` Diogenes
2013-03-13 22:32         ` Brian Drummond
2013-03-11 22:24   ` Randy Brukardt
2013-03-13  4:34 ` anon
2013-04-01 16:21 ` Oliver Kleinke

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