Front page | perl.perl5.porters |
Postings from May 2021
Re: C99
Thread Previous
|
Thread Next
From:
Steve Hay via perl5-porters
Date:
May 19, 2021 15:19
Subject:
Re: C99
Message ID:
CADED=K6iNrLtvjYv-z_RH69w==9kvk4C8cNhUFE7VBq47K1DuA@mail.gmail.com
On Wed, 19 May 2021 at 14:30, Nicholas Clark <nick@ccl4.org> wrote:
> The real elephant in the room is MSVC. I'm surprised that no-one has
> mentioned it yet.
>
> I know that Microsoft had an epiphany *relatively* recently and decided to
> start supporting C99, but
>
> * I don't know when that was
> * I don't know which version first supports enough
> * I don't know if previous versions support any individual C99 features at all
>
I've tested each of your 8 test cases with each MSVC compiler that I have:
Microsoft Visual C++ 6.0 Professional x86 (VC6.0)
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
comments, flexible - compile ok
others - syntax errors
Microsoft Visual C++ 2003 Toolkit x86 (VC7.1)
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
comments, flexible, u64 - compile ok
others - syntax errors
Microsoft Visual C++ 2005 Express x86 (VC8.0)
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86
comments, flexible, u64, variadic - compile ok
others - syntax errors
Microsoft Visual C++ 2008 Express x86 (VC9.0)
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
comments, flexible, u64, variadic - compile ok
others - syntax errors
Microsoft Visual C++ 2010 Express x86 (VC10.0)
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
comments, flexible, u64, variadic - compile ok
others - syntax errors
Microsoft Visual C++ 2012 Express x86 (VC11.0)
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.61030 for x86
comments, flexible, u64, variadic - compile ok
others - syntax errors
Microsoft Visual C++ 2013 Express x86 (VC12.0)
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.40629 for x86
variable - syntax errors
others - compile ok
Microsoft Visual C++ 2015 Express x86 (VC14.0 - yep, there wasn't a VC13.0...!)
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
variable - syntax errors
others - compile ok
Microsoft Visual C++ 2017 Community x64 (VC14.1)
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27045 for x64
variable - syntax errors
others - compile ok
Microsoft Visual C++ 2019 Community x64 (VC14.2)
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29913 for x64
variable - syntax errors
others - compile ok
These are the free versions of VC7 through VC14.2, which mainly limits
them to being x86. I have access to paid x64 versions too if you want
me to check, but I'm 99% sure the results would be the same.
> and
>
> my understanding is that "before Vista" several APIs that we would like to
> use don't exist. Specifically to do with locales and what is needed to
> emulate stat (or similar).
>
> Hence, if for those reasons we decide to drop support for XP and earlier,
> does doing *that* remove a constraint on minimum MSVC version, such that
> *it* is not the blocker on all things post C89?
>
All of the above compilers are running fine on my Windows 10 system on
my Windows 7 system before it. I suspect they would all run on Windows
Vista too.
Thread Previous
|
Thread Next