C
Parallelism
Submitted by Walter Banks on Fri, 2009-10-09 20:54. C | IEC 61131
In the comp.arch newsgroup, we've been following a heated discussion about Parallelism. It's focused on the question of designing software to run on multiple cores, either with shared memory or message passing.
We're of the opinion that the compiler can assist the developer in this task. After all, the compiler knows what is (or could be) in memory at any one moment.
printf for embedded
Submitted by Kirk Zurell on Thu, 2009-09-24 20:25. C | C6808 | debugging | eTPU | eTPU_C | eTPU_C | RS08There's only so much debugging information an LED or LCD display can report. What's worse, embedding debugging code in the executable can provoke misuse, while stripping it out can cause heisenbugs.
Your C compiler can help manage debugging information for you in a way that doesn't interfere with your product. Here's how:
The stack controversy
Submitted by Walter Banks on Thu, 2009-09-17 14:44. C | compiler
Just when you think an old misconception is dead...
The "stack/no stack" discussion has arisen again. We've heard renewed
claims that C programs require a hardware stack, and that a software
stack is unacceptably slow. Both ideas are patently false.
A perfectly useful do-nothing statement
Submitted by Walter Banks on Tue, 2009-03-24 14:50. CC macros are very useful, but a little taxing for both compiler writers and programmers.
C Traps
Submitted by Kirk Zurell on Fri, 2008-07-25 18:10. CC Traps and Pitfalls by Andrew Koenig is an interesting compilation of C-isms: quirks of the C language that can impact the programs you write.
Reading C type declarations
Submitted by Kirk Zurell on Fri, 2008-07-18 13:21. CThis article gives a plain-language way to read type declarations.
Exceptional Programming
C | eTPU | eTPU_C | interrupts | RS08What happens to high-level language programming when computer architecture changes? Walter Banks and Kirk Zurell recount the challenges of accommodating novel interrupt architectures in C for embedded systems.
The eTPU is an event driven processor. This paper looks at the implimentation challenges implimenting execution events on the mainstream embedded systems 8 bit processor comparing HC08/HCS08 architectures and the RS08.
Threads in C
C | threadsOverview
Threads in C require the following:
- A thread declaration, with a dispatch expression.
- A thread function (either a macro, function, or other code).
C Programming for Embedded Systems
C | embedded systems | errata | programming
Programmers just discovering embedded systems usually have lots of C experience, but little or no familiarity with the restrictions and peculiarities of 8-bit computer systems. The lack of amenities such as a console, operating system, or system call interface can leave them wondering where to start.

eTPU_C:
C6808: