Code-generation by Translation for an Embedded System
S. H. Irons · 1999
In November 1998, the Advanced Technology Division of Tait Electronics demonstrated a digital radio system to its Board of Directors. This was a first venture into digital radio for Tait Electronics, and was the first time that Tait Electronics had used code generated bv a case tool for object-oriented analysis in a mobile radio. Models are composed using a graphical case tool. A model-compiler translates the models into C++ code for compilation using standard tools. The translator 'stamps out' the components of the model (objects, relationships, state-machines) according to rules defined by the software architecture. Because the software architecture is under the control of the development team rather than the case tool vendor, the generated code can be tailored to meet project-specific constraints such as code size and execution speed. This paper briefly describes the modelling notation used and describes some of the changes made to the software architecture to meet memory and real-time constraints. Some of the advantages and disadvantages of the method are discussed, as well as the future of this method at Tait Electronics.