is the runtime implemented in betterC?

Adam D. Ruppe destructionator at gmail.com
Fri Nov 8 16:14:16 UTC 2019


On Friday, 8 November 2019 at 15:25:40 UTC, dangbinghoo wrote:
> hmm, if runtime is implemented in regular D, how could the 
> regular D code depends on regular D runtime be compiled when we 
> doesn't have a D runtime even exists?

Think of a file like this:

// test.d
void foo() { }
void bar() { foo(); }

The code in that file depends on code in that file... but of 
course it works since it is all there.

The D runtime is similar. All it really is is a list of bunch of 
functions that might be called. If you define those functions in 
your build when you use them, it works as a unit.


But like I said in my other message, the hard part is sometimes 
cpu arch but most the coupling is to an existing operating 
system...


More information about the Digitalmars-d-learn mailing list