C code generation in Papyrus [message #1644620] |
Mon, 02 March 2015 05:07 |
Abhijit Deshpande Messages: 11 Registered: December 2014 |
Junior Member |
|
|
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 #1645458 is a reply to message #1644620] |
Mon, 02 March 2015 14:21 |
|
Hi Abhijit,
Although not yet released, the code generator for the Papyrus for Real Time proposed project under Papyrus will (actually can right now with the development version...) generate C++ code from state machine. We do not, however, generate C code, although I suspect the content of the generated C++ classes could be extracted and run as part of a C program.
/Charles
/Charles Rivet
|
|
|
|
Re: C code generation in Papyrus [message #1648909 is a reply to message #1645601] |
Wed, 04 March 2015 04:34 |
|
Hi Steve,
I actually demoed the Papyrus for Real Time state-machine code generation at EclipseCon Europe 2014 and will be doing so again at EclipseCon NA 2015.
Hopefully, the project will get approved and we will be able to have something as part of Mars.
And indeed, the pattern we have currently implemented does not support parallel states (it is restricted to one region per state). There are others working on other patterns, although I do not know if parallel states is one of them, but it is doubtful that they would be ready in time for Mars.
/Charles Rivet
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03149 seconds