C code generation in Papyrus [message #1644620] |
Mon, 02 March 2015 00:07  |
Eclipse User |
|
|
|
Hi,
Is there any code generator, which can generate C code from state machine, activity, BDD and IBD?
I tried "Block -> right click -> Code generation -> Generate C++ code" (I think this is Acceleo code generator) as well as Qompass code generator. But, in both cases only C++ class declarations (empty => i.e. without any behavior) are getting generated.
So, the question is whether there is any C/C++ code generator, which can generate code for model behavior described using state machine, activity diagram etc.?
BTW, for code generation exercise, I used counter example which is available at https://wiki.eclipse.org/Papyrus/UserGuide/ModelExecution. and, even though I could execute this model using "Moka", I could not generate C code for the same.
Thanks,
Abhijit
|
|
|
|
|
|
|
Re: C code generation in Papyrus [message #1767205 is a reply to message #1767180] |
Mon, 03 July 2017 10:32  |
Eclipse User |
|
|
|
Hi Eric,
yes, the Papyrus-RT code generation is mature enough, but it will generate C++ rather than C code.
A potential alternative for C++ code generation is the Papyrus SW designer. SW designer has a C code generator as well, but the latter is not well tested and therefore not part of the build yet.
|
|
|
Powered by
FUDForum. Page generated in 0.03884 seconds