22
u/germandiago Apr 27 '21
How complete are modules? Did anyone try it with real projects during development?
1
u/johannes1971 Apr 27 '21 edited Apr 27 '21
EDIT: ...never mind. This is about gcc, not about msvc.
1
u/LeeHide just write it from scratch Apr 27 '21
Ms != gcc though
14
u/johannes1971 Apr 27 '21
You raise an excellent point. In my defense, it's really quite late in my timezone and I should have been in bed a while ago. In fact I'll do so now.
-1
u/0xC1A Apr 29 '21
This is getting old.
2
u/johannes1971 Apr 29 '21
Yes, yes, that's why I have to go to bed a bit earlier... No need to rub it in.
18
32
u/bizwig Apr 27 '21
Floating point std::to_chars/from_chars!
19
u/matthieum Apr 27 '21
C++17's final boss!
Not present yet in libc++, unfortunately, which prevents portability when used :(
7
12
27
u/lorlen47 Apr 27 '21
Does anybody else find this annoying that GCC always starts with an x.1 release?
36
7
5
4
u/bernhardmgruber Apr 28 '21
AFAIK it also ships the first libstdc++ with `std::experimental::simd`. Very excited!
3
u/albeva Apr 29 '21
What is the recommended way to run GCC on windows these days? MingW seems horribly out of date.
3
u/fsb4000 May 03 '21
Best GCC on Windows. If I remember correctly it supported since Windows 7.
https://www.msys2.org/
If you need GCC compiler for Windows XP: https://jmeubank.github.io/tdm-gcc/1
u/albeva May 10 '21
From what I understand (correct me if I am wrong) it still uses mingw - which is quite outdated.
1
u/fsb4000 May 11 '21
msys 2 gcc uses mingw-64 v9.0 (current git version)
tdm-gcc can use mingw or mingw-64 v7.0
http://mingw-w64.org/doku.php/versions
https://github.com/jmeubank/tdm-gcc/releases/download/v9.2.0-tdm64-1/tdm64-gcc-9.2.0.exe
1
u/albeva May 11 '21
What version of GCC is it based on?
1
u/fsb4000 May 11 '21
msys2: gcc 10.3
tdm-gcc: 9.2
```
gcc -vUsing built-in specs.
COLLECT_GCC=C:\tools\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.3.0 (Rev2, Built by MSYS2 project)
```
Hope to update to gcc 11.1 soon: https://github.com/msys2/MINGW-packages/pull/8320```
gcc -vUsing built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/tools/toolchains/WinXP/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/9.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Thread model: posix
gcc version 9.2.0 (tdm64-1)
```
2
u/MorrisonLevi Apr 27 '21
Does anyone know if it's possible to build for micro-architecture target x86-64-v2 (see wikipedia) in older releases of GCC by using particular sets of flags, or if it's a subset not previously exposed?
7
u/staletic Apr 28 '21
Just add a bunch of
-mflags.-march=x86-64 -mcx16 -msahf -mpopcnt -msse3 -msse4 -msse4.1 -msse4.2 -mssse3
2
3
0
u/HankRuste Apr 27 '21
I am on Fedora. The bleeding edge will get it in a couple of weeks I guess.
1
u/staletic Apr 27 '21
Here's Gentoo's tracker for software failing to compile with gcc 11: https://bugs.gentoo.org/show_bug.cgi?id=732706
1
u/AngriestSCV Apr 28 '21
You can compile your own gcc. If you install it to a local directory instead of the system one it is even easy to add and remove from your path.
1
-9
57
Apr 27 '21
[removed] — view removed comment
24
u/Ahajha1177 Apr 27 '21
Using enum is going to be nice, and maybe I'll start playing around with modules.
50
u/Theninjapirate Apr 27 '21
Hooray!