On Monday, 26 October 2015 at 15:54:52 UTC, guodemone wrote:
There is no example of a method to write OS（bootloader,）Including compiled, linked fashion
Chapter 11 of my book https://www.packtpub.com/application-development/d-cookbook shows how you can get started. Though the runtime requirements have probably changed since then, so it may not work exactly as presented.
Starting example code here: http://arsdnet.net/dcode/book/chapter_11/01/