za profiling clang-a mi treba build platforme bez optimiranja
inline funkcija. Ovo mi baš ne radi:
CFLAGS="-fno-inline -fno-default-inline" CXXFLAGS="-fno-inline
-fno-default-inline" ../llvm/configure
ima li tko ideju kako to napravit?
tnx,
klemo.
ne baš, ali da vidim da li sam dobro shvatio pitanje -- ti pitaš kako
zbildati clang/llvm tako da nemaju inline fje, a ne kako pomoću njih
zbildati program koji nema inline, right?
--aka
Da, zanima me isključivo run-time profile samog clanga, npr.
valgrind --tool=callgrind clang test.cpp
bez obzira što je test.cpp, želim call-graph od samog procesa
kompilacije. Jedini problem su inline funkcije za koje se ne mogu
referencirati na kod kao kod običnih funkcija kad analiziram graf
poziva.
>
> --aka
>
> --
> You received this message because you are subscribed to the Google Groups "lang gang" group.
> To post to this group, send email to lang...@googlegroups.com.
> To unsubscribe from this group, send email to lang-gang+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lang-gang?hl=en.
>
An inline function shall be defined in every translation unit in which it is odr-used and shall have exactly the same definition in every case (3.2).
Every program shall contain exactly one definition of every non-inline function or variable that is odr-used in that program; no diagnostic required. The definition can appear explicitly in the program, it can be found in the standard or a user-defined library, or (when appropriate) it is implicitly defined (see 12.1, 12.4 and 12.8). An inline function shall be defined in every translation unit in which it is odr-used.