Since visual modelling languages are getting more and more
popular, the automatic
generation of the program code on the basis of high-level models is an
important
issue. This article discusses implementation possibilities of statecharts,
the graphical notation for describing state-based event-driven behaviour in the
Unified Modelling Language (UML). The first part of the article outlines
common approaches published in the literature and identifies their weaknesses.
In the second part an implementation pattern is proposed that is capable of
efficiently instantiating most of the statechart features. The pattern
developed by us poses low hardware requirements therefore applicable even in
embedded systems