MacroExpressions
01   /   Software archive

C-SLang

Scripting for embedded diagnostics

What if the test changes after the device ships?

A manufacturing test may run just once. A field diagnostic may be needed years later, when the fault is finally understood. Building every test into the firmware takes space and assumes you know in advance what to test.

With C-SLang, you write a script using C macros, compile and debug it on the host, then export it for the interpreter on the target. The application supplies access to device-specific operations. Scripts can also be linked into the firmware.

The tradeoff is execution speed for code density. The manual covers target configuration and the language. The white paper explains the original design.