Re: What is the absolute minimum code for a D kernel, and how should it be compiled?

2015-01-06 Thread Stijn via Digitalmars-d-learn
On Tuesday, 6 January 2015 at 22:41:06 UTC, Adam D. Ruppe wrote: I showed how to do it in my book using dmd. Here's the code: http://arsdnet.net/dcode/book/chapter_11/01/ I've just bought the book, I'll dive right into it :) Thanks!

Re: What is the absolute minimum code for a D kernel, and how should it be compiled?

2015-01-06 Thread Adam D. Ruppe via Digitalmars-d-learn
I showed how to do it in my book using dmd. Here's the code: http://arsdnet.net/dcode/book/chapter_11/01/ Explanation is in chapter 11 here: https://www.packtpub.com/application-development/d-cookbook In the appendix, I also did ARM with gdc: http://arsdnet.net/dcode/book/appendix_a/01/ The a

What is the absolute minimum code for a D kernel, and how should it be compiled?

2015-01-06 Thread Stijn via Digitalmars-d-learn
After writing a bootloader and getting it to jump to a Hello World "kernel" written in assembly, I want to give it a go with a "kernel" written in D. I'm using GDC because I didn't have much luck with making DMD skip the D runtime and standard libs. Starting with this code: void main() {