Which C standard is considered in code generation/C block?

Leopoldino
Leopoldino Altair Community Member
edited September 11 in Community Q&A

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.

 

Tagged:

Answers

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited September 11

    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.