News for hackers. Stuff that matters.
Re:Own Constant Folder in C/C++ by cozzyd on Saturday June 22, 2024 @02:58PM (#40761255)
Or even on a per function basis, at least with gcc (no clue about clang...)
Re:Own Constant Folder in C/C++ by gpderetta on Saturday June 22, 2024 @03:01PM (#40761270)
In principle yes, you can use Attribute optimize, but I wouldn't rely on it. Too many bugs open against it.
Re:Own Constant Folder in C/C++ by cozzyd on Saturday June 22, 2024 @03:07PM (#40761312)
It's worked for me in the past but maybe I got lucky.