www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - What does the compiler really require from the runtime?

reply "Alex" <info broodtech.de> writes:
Hi Everyone,

Is there a list of functions and data structures, the D-Compiler 
would expect from a custom runtime?
Aug 19 2014
next sibling parent reply Jacob Carlborg <doob me.com> writes:
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
Aug 19 2014
next sibling parent reply "Alex" <info broodtech.de> writes:
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 :)
Aug 19 2014
parent "w0rp" <devw0rp gmail.com> writes:
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.
Aug 23 2014
prev sibling parent reply "Messenger" <dont shoot.me> writes:
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!
Aug 24 2014
parent Jacob Carlborg <doob me.com> writes:
On 2014-08-24 09:26, Messenger wrote:

 Use the source, Luke!
Hehe :) -- /Jacob Carlborg
Aug 24 2014
prev sibling parent "Dicebot" <public dicebot.lv> writes:
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.
Aug 19 2014