Skip to content

Cpp vs CCpp targets #997

Answered by edwardalee
stustd asked this question in Q&A
Mar 3, 2022 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

In the Cpp target, reactions are written using a C++ style, whereas in the CCpp target, they are written with a C style. Specifically, accessing inputs, state variables, and parameters is via method calls in the Cpp target. Also, the type system is more flexible in the Cpp target, supporting generics and handling allocation/deallocation in a more intuitive way. Also, the code generated by the Cpp target is more elegant and is object oriented.

I think (hope) the Cpp target will eventually support federated execution, at which point the CCpp target may become less interesting, but I'm not sure about that.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@stustd
Comment options

@stustd
Comment options

@lhstrh
Comment options

@stustd
Comment options

@lhstrh
Comment options

Answer selected by edwardalee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants