tags:

views:

284

answers:

2

Could someone guide me on what path/steps to take to create a simple bootable hello world program? I have the basic knowledge of C/C++.

My aim is to create a very simple OS.

I would like as much relevant links to references and samples as possible.

A: 

See this.

Neeraj
A: 

You want to build a statically linked binary (no ld.so involved), and you start it by jumping to its entry point. The entry point is usually the start of the .text section. Maye run objdump --section-headers image on it to find out its adress.

If you're trying to run on an embedded device, check out how the kernel of an embedded OS is built and booted. For example, see how U-Boot brings up an Ångström linux based system.

doppelfish