OS in D language

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
User avatar
Wilkie
Member
Member
Posts: 44
Joined: Tue Aug 26, 2008 10:02 pm
Location: Land of the Dead
Contact:

Re: OS in D language

Post 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.
BuRnEr
Posts: 2
Joined: Wed Aug 05, 2009 2:40 pm

Re: OS in D language

Post 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.
Post Reply