Is it possible to chose the ay SCADE Suite generates C code for a State machine?


I am discovering SCADE Suite, and I am wondering if it is possible to chose different ways to generate C code corresponding to a state machine. In C state machines can be implemented in 2 different ways:

  • By using 2 levels of nested switch case (one for states, one for events)
  • By creating an array of pointers to functions with 2 dimentions (once again: one for states, one for events).

Is there is a way to configure and / or modelise with SCADE, to obtain a state machine with corresponding a C code implemented preferentially to the other?


François ALIBERT.


  • KremellaKremella Admin Posts: 2,326


    The SCADE code generator has a bunch of options but none has an effect on the code generated for the state machines. Just curious: what do you have in mind? If you can help us understand this, perhaps we can help you in a different manner.

    Thank you.


Sign In or Register to comment.