Software Coding

After the hard graft of design and planning, the fun of embedded software starts (but not ends!) with coding.

Embedded C

I code embedded work almost exclusively in C, with a little assembler if necessary (although I have coded entire projects in assembler). I find that C wins over assembler for:

  • Standards compliance (ANSI C)
  • Portability (with a little care)
  • Static analysis tools, such as PC Lint
Windows and Visual Basic

Small PC applications are often required to configure or test embedded software via a serial link or other PC interface. I usually code these using:

  • Visual Basic for standalone applications
  • VB Script for a smaller-scale script-based approach, run under the Windows Scripting Host