Re: Doing without GCC's statement-blocks-as-expressions extension

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nicholas Sherlock wrote:
> I'm developing a translator which converts code from a language I'm
> designing (which is an object-oriented language similar to Java) into C.
> At the moment, I'm making heavy use of GCC's GNU99
> statement-blocks-as-expressions extension. This means that the code I
> generate can't be used by my friends who use VC++ or other compilers. I
> would like to generate code much closer to standard C99.

Generating ISO C99 code will guarantee that your program will not run
with VC++.  Microsoft C only supports ANSI 1990.  See the following link
for details:

http://msdn.microsoft.com/en-us/library/02y9a5ye.aspx

I looked into this for a project I was working on and decided to only
support gcc.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux