search for: dcls

Displaying 5 results from an estimated 5 matches for "dcls".

Did you mean: cls
2018 Jun 19
6
Naming clash: -DCLS=n and CLS in code
...on 06/19/2018 08:54 PM: >>> Why are you passing that argument in the first place? The compiler >>> completely ignores it. >> >> CLS stands for cacheline size. It is an important parameter >> for optimization of the generated code, at least with gcc/g++. >> -DCLS=n should have the same importance like for example -DNDEBUG. > > The GCC source doesn't appear to mention it, and neither does any > documentation I can find. NDEBUG on the other hand is in both the C > and C++ standards. > > I still think there's some weird library out th...
2018 Jun 19
3
Naming clash: -DCLS=n and CLS in code
On Tue, 19 Jun 2018 at 20:46, Bruce Hoult <brucehoult at sifive.com> wrote: > Furthermore .. in the articles you reference, the -DCLS=$(getconf LEVEL1_DCACHE_LINESIZE) is passed when compiling the user's program -- one doing extensive blocked matrix operations -- and not when building the *compiler*. It's worse. At least in the first case, the code looks like it wouldn't even compile without that definition. That'...
2018 Jun 19
2
Naming clash: -DCLS=n and CLS in code
...s for naming variables, constants, enum >> members, macros etc. > > Why are you passing that argument in the first place? The compiler > completely ignores it. CLS stands for cacheline size. It is an important parameter for optimization of the generated code, at least with gcc/g++. -DCLS=n should have the same importance like for example -DNDEBUG. > I sort of assume some library makes use of it, but if so that library > is certainly not required while compiling Clang and is actually > obscure enough that it's not even obvious from Googling. So it's a bit > of a...
2018 Jun 19
2
Naming clash: -DCLS=n and CLS in code
Tim Northover via llvm-dev wrote on 06/19/2018 09:22 PM: > On Tue, 19 Jun 2018 at 20:12, U.Mutlu <um at mutluit.com> wrote: >> You can find more examples by searching for "DCLS getconf LEVEL1_DCACHE_LINESIZE". > > Frankly, it all looks like cargo-cult optimization flagomancy. I'd > suggest you drop it, it's not magical I promise. Hey, I'm working on optimization, and I know "it works". Curious, have you ever heard of "false shari...
2018 Jun 19
2
Naming clash: -DCLS=n and CLS in code
While building llvm & clang & libs by giving some optimization options to the building compiler, the following error happened: I think it is related to the passed -DCLS=64, because in file clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp:6411 an enum member has the same name (CLS), so it does a macro-substitution with the passed value of CLS, ie. with 64, but which of course then breakes the syntax... I think such "reserved" names like CLS that can be...