LDC -noruntime
BLM768
blm768 at gmail.com
Fri Jul 6 20:45:53 PDT 2012
On Friday, 6 July 2012 at 21:54:15 UTC, 1100110 wrote:
> I swear you guys read my mind sometimes... It's creepy.
>
> I just had this very issue, doing the exact same thing, about
> an hour ago.
>
> Have you tried with -nodefaultlib -noruntime ? Cause that's
> what works for me...
>
> I just got *something* to compile with no runtime or std.
> Whether or not it actually does anything remains to be seen.
>
>
No luck; it still references the runtime.
I've been stubbing out the runtime; it seems to be about done
except for references to some functions I can't find. The symbols
are __moddi3 and __divdi3; I assume they're C math library
functions, as they're generated from code that uses div/mod
operations. It also seems to be unable to properly find
Object.toString() after I changed it to be nothrow, which I
needed to do because I'm stubbing out the exception handling
routines; it seems to have changed the mangling. It's a bit of a
mess in there; I'm glad I don't always have to hack up the
runtime :).
More information about the Digitalmars-d-learn
mailing list