Re: is the runtime implemented in betterC?

2019-11-09 Thread dangbinghoo via Digitalmars-d-learn
On Saturday, 9 November 2019 at 22:46:16 UTC, kinke wrote: druntime depends on OS, architecture and coupled C runtime - what OS are you going to target? thank you all first! I just made a basic mistake and didn't realized that druntime is just libraries and onlymatter when linking the final

Re: is the runtime implemented in betterC?

2019-11-09 Thread kinke via Digitalmars-d-learn
On Friday, 8 November 2019 at 15:25:40 UTC, dangbinghoo wrote: On Friday, 8 November 2019 at 13:52:18 UTC, kinke wrote: On Friday, 8 November 2019 at 10:40:15 UTC, dangbinghoo wrote: hi, I'm not sure what you are trying to achieve; you can easily cross-compile druntime & Phobos with LDC,

Re: is the runtime implemented in betterC?

2019-11-09 Thread Jacob Carlborg via Digitalmars-d-learn
On 2019-11-08 16:25, 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? thinking thant we just have xtensa-llvm, and building ldc for xtensa CPU,  the runtime will

Re: is the runtime implemented in betterC?

2019-11-08 Thread Adam D. Ruppe via Digitalmars-d-learn
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() {

Re: is the runtime implemented in betterC?

2019-11-08 Thread dangbinghoo via Digitalmars-d-learn
On Friday, 8 November 2019 at 13:52:18 UTC, kinke wrote: On Friday, 8 November 2019 at 10:40:15 UTC, dangbinghoo wrote: hi, I'm not sure what you are trying to achieve; you can easily cross-compile druntime & Phobos with LDC, see https://wiki.dlang.org/Building_LDC_runtime_libraries. hmm,

Re: is the runtime implemented in betterC?

2019-11-08 Thread kinke via Digitalmars-d-learn
On Friday, 8 November 2019 at 10:40:15 UTC, dangbinghoo wrote: hi, is the runtime d code implemented purely with betterC? i was thinking that what's happening when we building ARM dlang compiler, when the dlang compiler ready in the first, there's no ARM version of the runtime lib and

Re: is the runtime implemented in betterC?

2019-11-08 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 8 November 2019 at 10:40:15 UTC, dangbinghoo wrote: is the runtime d code implemented purely with betterC? It is actually implemented in regular D! i was thinking that what's happening when we building ARM dlang compiler, when the dlang compiler ready in the first, there's no ARM

is the runtime implemented in betterC?

2019-11-08 Thread dangbinghoo via Digitalmars-d-learn
hi, is the runtime d code implemented purely with betterC? i was thinking that what's happening when we building ARM dlang compiler, when the dlang compiler ready in the first, there's no ARM version of the runtime lib and phobos, so, it's likely we are using bare metal D and trying to build