[m-dev.] main as an exported predicate
Fergus Henderson
fjh at cs.mu.OZ.AU
Sat May 2 13:10:08 AEST 1998
On 02-May-1998, Thomas Charles CONWAY <conway at cs.mu.OZ.AU> wrote:
>
> Main/2 is handled rather specially in the runtime at the moment: the
> runtime contains a hard-coded call to nonprofcall for main. Is there
> any reason (other than hysterical) that main shouldn't be handled like
> the library_initializer - and be a predicate automatically exported to
> C and then called via the usual C-calls-Mercury mechanism?
There are a few reasons (profiling, benchmarking, low-level debugging)
but I think they're all historical.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list