SPC  Version 0.9.5
 All Files Functions Groups Pages
Introduction

SPC stands for SuperPro C.

It is a simple language for programming the HiTechnic SuperPro prototyping sensor board. The SuperPro has a bytecode interpreter which can be used to execute programs. The SPC compiler translates a source program into SuperPro bytecodes, which can then be executed on the target itself. Although the preprocessor and control structures of SPC are very similar to C, SPC is not a general-purpose programming language - there are many restrictions that stem from limitations of the SuperPro bytecode interpreter.

Logically, SPC is defined as two separate pieces. The SPC language describes the syntax to be used in writing programs. The SPC Application Programming Interface (API) describes the system functions, constants, and macros that can be used by programs. This API is defined in a special file known as a "header file" which is, by default, automatically included when compiling a program.

This document describes both the SPC language and the SPC API. In short, it provides the information needed to write SPC programs. Since there are different interfaces for SPC, this document does not describe how to use any specific SPC implementation (such as the command-line compiler or Bricx Command Center). Refer to the documentation provided with the SPC tool, such as the SPC User Manual, for information specific to that implementation.

For up-to-date information and documentation for SPC, visit the SPC website at http://bricxcc.sourceforge.net/spc/.