Re: Porting D to custom OS

2020-02-23 Thread Denis Feklushkin via Digitalmars-d-learn
On Saturday, 22 February 2020 at 13:20:40 UTC, IGotD- wrote: I'm trying to find information how to port D, especially the D runtime to a proprietary OS. Here is my "Frankenstein" MCU project: https://github.com/denizzzka/d_c_arm_test Maybe this will help you somehow. It is forced to use simu

Re: Porting D to custom OS

2020-02-23 Thread Jacob Carlborg via Digitalmars-d-learn
On 2020-02-22 20:30, IGotD- wrote: That's sound like a start. Is there some kind of automation behind this based on the target triple (-mtriple) or just some kind of hardcoded default versions identifiers somewhere in the source code? Have a look at [1] for a recent example. [1] https://git

Re: Porting D to custom OS

2020-02-22 Thread IGotD- via Digitalmars-d-learn
On Saturday, 22 February 2020 at 15:18:09 UTC, kinke wrote: I'd suggest to first hack the compiler, so that it doesn't predefine the host OS, but a new version for your OS (and check whether predefining `version (Posix)` is appropriate or not). That way, you'll hit static asserts when compili

Re: Porting D to custom OS

2020-02-22 Thread kinke via Digitalmars-d-learn
On Saturday, 22 February 2020 at 13:20:40 UTC, IGotD- wrote: Do we have any guide for OS porting? I'd suggest to first hack the compiler, so that it doesn't predefine the host OS, but a new version for your OS (and check whether predefining `version (Posix)` is appropriate or not). That way,

Re: Porting D to custom OS

2020-02-22 Thread Iain Buclaw via Digitalmars-d-learn
On Saturday, 22 February 2020 at 13:20:40 UTC, IGotD- wrote: I'm trying to find information how to port D, especially the D runtime to a proprietary OS. The OS support seems to be scattered around several files with a lot version (OS) switches. This makes kind of hard to understand what you hav

Porting D to custom OS

2020-02-22 Thread IGotD- via Digitalmars-d-learn
I'm trying to find information how to port D, especially the D runtime to a proprietary OS. The OS support seems to be scattered around several files with a lot version (OS) switches. This makes kind of hard to understand what you have to implement. Also, what happens if you only have partial s