Which C standard is considered in code generation/C block?
Leopoldino
Altair Community Member
Which C standard is considered in code generation/C block?
I can't find in the documentation which C standard is considered valid by the SimCoder C block (SimCoder version 2022d0.61).
For instance:
- In the C89 standard there is no comment using "//" (but in the generated code we have them)
- In the C99 standard we can declare the loop index inside for loop as in "for (int i=0;....", but this code generates error when using "Check Code" button.
Thank you.
0
Answers
-
C-Block C-Standard support is described in detail in the pdf document included with PSIM in folder /embedch/docs/chguide.pdf page 543.
We support all features of C89 and we are working toward C99.
0