This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C99 Appears To Enforce Strict ANSI By Default

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I have switched the compiler 2.1.3.LTS language from default to C99. The following statement no longer compiles:

The problem can be fixed by changing "asm" to "__asm".

In the manual it says "The alternate keyword, "asm", may also be used except in strict ANSI C mode. It is available in relaxed C"

This implies that when c99 is selected that this also enforces strict ANSI. However the manual also says relaxed mode is the default.

Why does simply selecting C99 mode appear to enforce strict ANSI please?