Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
August 19, 2014 What does the compiler really require from the runtime? | ||||
---|---|---|---|---|
| ||||
Hi Everyone, Is there a list of functions and data structures, the D-Compiler would expect from a custom runtime? |
August 19, 2014 Re: What does the compiler really require from the runtime? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex | On 2014-08-19 18:31, Alex wrote: > Hi Everyone, > > Is there a list of functions and data structures, the D-Compiler would > expect from a custom runtime? Here's a list [1]. It's probably not complete but it's a start. It's best to look at the source code of the existing runtime. [1] http://wiki.dlang.org/Runtime_Hooks -- /Jacob Carlborg |
August 19, 2014 Re: What does the compiler really require from the runtime? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex | On Tuesday, 19 August 2014 at 16:31:38 UTC, Alex wrote: > Hi Everyone, > > Is there a list of functions and data structures, the D-Compiler would expect from a custom runtime? You may be interested in watching http://dconf.org/2014/talks/franklin.html and reading https://www.packtpub.com/application-development/d-cookbook - both explain in details what was necessary to create a minimal runtime for barebone binary. It is not a fully-featured runtime though so actual answer may depend on your goals - you don't need to implement language features you are not going to use. |
August 19, 2014 Re: What does the compiler really require from the runtime? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Tuesday, 19 August 2014 at 16:55:49 UTC, Jacob Carlborg wrote:
> On 2014-08-19 18:31, Alex wrote:
>> Hi Everyone,
>>
>> Is there a list of functions and data structures, the D-Compiler would
>> expect from a custom runtime?
>
> Here's a list [1]. It's probably not complete but it's a start. It's best to look at the source code of the existing runtime.
>
> [1] http://wiki.dlang.org/Runtime_Hooks
thanks, thats exactly what i needed :)
|
August 23, 2014 Re: What does the compiler really require from the runtime? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex | On Tuesday, 19 August 2014 at 18:26:28 UTC, Alex wrote:
> On Tuesday, 19 August 2014 at 16:55:49 UTC, Jacob Carlborg wrote:
>> On 2014-08-19 18:31, Alex wrote:
>>> Hi Everyone,
>>>
>>> Is there a list of functions and data structures, the D-Compiler would
>>> expect from a custom runtime?
>>
>> Here's a list [1]. It's probably not complete but it's a start. It's best to look at the source code of the existing runtime.
>>
>> [1] http://wiki.dlang.org/Runtime_Hooks
>
> thanks, thats exactly what i needed :)
I think Adam's book and work from others like that DConf talk show that there's a lot of potential for implementing lighter runtimes for using in embedded code, kernels etc. I've considered playing around with it myself for writing effectively C libraries instead in D which don't require the runtime. (Further to the "Better C" idea.) I'm not sure how practical such a thing would be, but praticality is rarely a concern in projects I work on just for fun, until it turns out to actually be useful.
|
August 24, 2014 Re: What does the compiler really require from the runtime? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Tuesday, 19 August 2014 at 16:55:49 UTC, Jacob Carlborg wrote:
> On 2014-08-19 18:31, Alex wrote:
>> Hi Everyone,
>>
>> Is there a list of functions and data structures, the D-Compiler would
>> expect from a custom runtime?
>
> Here's a list [1]. It's probably not complete but it's a start. It's best to look at the source code of the existing runtime.
>
> [1] http://wiki.dlang.org/Runtime_Hooks
Use the source, Luke!
|
Copyright © 1999-2021 by the D Language Foundation