I think you're using lcc-win, which is based on lcc but they're two different compilers. As I recall, it has an option to disable extensions and conform to the C standard (C99, I think).
–
Keith ThompsonOct 1 '12 at 8:56

Is objective-C an extension to original C?Is a language being considered as a new language(just like Objective-C) if it has added funationality(extension) to the language?
–
caramel1995Sep 4 '12 at 15:46

Since all valid C programs are valid Objective C programs, it could be considered an extension.
–
Dirk HolsoppleSep 4 '12 at 15:52

So that's mean C++ is also a C variant since C code programs are valid C++ programs
–
caramel1995Sep 4 '12 at 15:55

8

I think C++ and C standards conflict with each other now...
–
speederSep 4 '12 at 16:03

1

You're allowed to have extensions as long as they don't conflict with the standard -- True, but once you use the extensions, you're no longer C standard, unless the extensions are library-based (not compiler-based) and you can freely include the extension library in your own programs.
–
Robert HarveyJan 31 at 19:34

Many compilers claim to be compliant to some standard or another, and then enable their own private extensions by default. As long as you disable enough extensions, you can typically get a compiler into a mode that's "compliant" to some standard.

The only C functionality that's remotely close to overloading is limited type-generic macros of <tgmath.h> in C99 and generic selection expressions in C11 as outlined on this site.

It is common for compilers to support a superset of a standard and describe themselves as compliant.

As long as they handle code which conforms to the standard as the standard says they should then they are conforming. Many compilers have a command line flag which can be turned on to treat code more strictly, rejecting code which makes use of non-standard features. I'd imagine LCC will have such a flag.

It looks to me like the LCC authors don't claim ANSI C compliance, but as you suggest in your question, have made their compiler support extensions to the C language.

"This document then, proposes the development of several enhancements to the language,
mostly compatible with their C++ counterparts. The main aim is to make C programming
easier, more secure and more flexible than it is now."