Minimal semihosted ARM Cortex-M "Hello World"

From D Wiki
Revision as of 09:56, 2 December 2013 by Verax (talk | contribs) (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The following is an extremely minimal, semihosted "Hello World" D program for ARM Cortex-M processors.

Goals

  • Verify ARM Cortex-M toolchain (compiler-->linker-->debugger)
  • Demonstrate how much of the D runtime and D standard library are required to begin programming for the ARM Cortex-M (essentially none)
  • Demonstrate that linking to C code is not necessary
  • Demonstrate that all required assembly code can be done within D

Tools

  • (compiler) LDC with ARM backend
  • (linker & debugger) GNU Tools for ARM Embedded