WM_NCOMPPROCS and full optimization
The problem is in my opinion not that CLang is that bad. On the contrary: I think the problem is that it tries to optimize the output of bison when other compilers don't. At least in the past a sure-fire way to get your code NOT (or only superficially) optimized was to add goto to it. Most optimization algorithms assume that there is only one way to enter a code block and if you use goto you break that promise and most compilers say "OK. I will not even try to optimize this garbage". The bison/flex code contains quite a number of AND the source files generated are quite large. CLang seems to try to optimize them with O3. The memory usage seems to vary for different versions of CLang. Ah. And by the way: the error messages of CLange are MUCH more readable than the stuff g++ prints
Nice! I already knew that CLang provides a better warning/error messages, as well as helping find some issues without the need of some other lint software, but I had no idea that it tried to optimize the output from bison et al!
OK, I'll update the note with this in mind.
You do not have permission to edit this page, for the following reasons:
- The action you have requested is limited to users in the group: Users.
- You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.
- Your username or IP address has been blocked.
The block was made by DNSBL.
The reason given is Your IP address is listed as an open proxy in the DNSBL used by OpenFOAMWiki..
- Start of block: 21:05, 17 May 2021
- Expiry of block: 21:05, 17 May 2021
- Intended blockee: 126.96.36.199
You can view and copy the source of this page: