Page 6 of 6

Re: OS in D language

Posted: Thu Aug 20, 2009 5:09 pm
by Wilkie
BuRnEr wrote:I have been trying to get the D Barebone from the wiki to run, using the ldc compiler.
Linking failed, due to the fact that ldc always imports object.d at compile-time even with -nodefaultlib -noruntime.
Sorry for long absence. Hopefully you see this. I idle in #ldc and don't remember you. Say hi next time :)

You will need an object.d. You will even need a stubbed runtime to link against. For XOmB and the XOmB D Barebones (not the same as the OSDev D barebones which is just a port of the C one) we have created object.d to be internally congruent with Tango runtime's object.d. The compiler seems to expect an Object class of a particular size.

Our XOmB Barebones is public domain, so you can start looking through there. It would be a pain to do all of that stub work yourself...you learn next to nothing...which is why the barebones exists.

http://xomb.net/index.php?title=XOmB_Bare_Bones

Hop into #xomb on freenode if you'd like to discuss our barebones.

Re: OS in D language

Posted: Wed Aug 26, 2009 4:56 pm
by BuRnEr
Thanks for the answer, I had given up hope :wink:

Your absolutely right most code need is just boring. Not that the XOmb Bare Bone is boring(it's actually great) but most it's code is boring. std/typeinfo is my favorite.
First I was a bit reluctant about a 7k+ line barebone, but it's not the size that matters.

So thanks for the nice example. If anything interesting comes out from it from my side, I'll let you know.