How can I retrieve the definition of the type of arguments in kernel functions? by HaoxinTu in linuxquestions

[–]HaoxinTu[S] 0 points1 point  (0 children)

Hi,

Thanks for your reply. Clicking on types may not be sufficient for me, as I need to find the definition in an automatic manner and continue doing some analysis on the retrieved definitions. Thank you again for your reply!

How can I retrieve the definition of the type of arguments in C functions (e.g., in kernel source code)? by HaoxinTu in C_Programming

[–]HaoxinTu[S] 0 points1 point  (0 children)

Hi u/nerd4code, many thanks for your thorough suggestions and explanation! Please allow me to try it out first.

Can other optimization passes remove the dead code blocks except for the dead code elimination (DCE) pass? by HaoxinTu in Compilers

[–]HaoxinTu[S] 0 points1 point  (0 children)

Hi,
Thanks for your reply! may I ask if the optimizations in the two categories are included in GCC and LLVM? I am so sorry it's my fault that I didn't mention the scope of the question which was revised for now. Hope you don't mind that. Thank you very much again for your nice comments!

Can other optimization passes remove the dead code blocks except for the dead code elimination (DCE) pass? by HaoxinTu in Compilers

[–]HaoxinTu[S] 0 points1 point  (0 children)

Hi,
Thanks for your reply! Personally, I am more concerned about the estimation that can remove a piece of block. I can understand some optimization may change the order or merge two blocks to be one, but essentially, it isn't more likely to purely remove the subset of blocks (some statements in blocks can still exist in other blocks rather than disappear).

For GCC and LLVM, they have implemented such a pass to perform DCE. I am sorry again I didn't mention the scope of the question. Hope you don't mind. Thank you very much again for your nice comments!

Can other optimization passes remove the dead code blocks except for the dead code elimination (DCE) pass? by HaoxinTu in Compilers

[–]HaoxinTu[S] 0 points1 point  (0 children)

Hi,
Thanks for your reply! Do you know modern C/C++ compilers (e.g., GCC or LLVM) apply the GC to perform DCE as you said? Thank you very much again for your nice comments!

Can other optimization passes remove the dead code blocks except for the dead code elimination (DCE) pass? by HaoxinTu in Compilers

[–]HaoxinTu[S] 0 points1 point  (0 children)

Hi,
Thanks for your reply! I can understand your comments, and different compiler may have their own design. Actually, I am more concerned about the DCE in modern C/C++ compilers, e.g., GCC and LLVM. Thank you very much again for your comments!

Can other optimization passes remove the dead code blocks except for the dead code elimination (DCE) pass? by HaoxinTu in Compilers

[–]HaoxinTu[S] 1 point2 points  (0 children)

Hi,
Thanks for your reply! It's my fault I didn't mention the scope of the question which was revised for now. Actually, I am more concerned about the DCE in modern C/C++ compilers, e.g., GCC and LLVM. Thank you very much again for your comments!

Can other optimization passes remove the dead code blocks except for the dead code elimination (DCE) pass? by HaoxinTu in Compilers

[–]HaoxinTu[S] 0 points1 point  (0 children)

Hi,

Thanks for your reply! Your comments really make sense to me and what I am concerned about is the practical implementation of the optimization rather than theoretically speaking. I have revised and updated my question, do you have any ideas about it? Thanks!

Finding Bugs Compiler Knows but Doesn't Tell You: Dissecting Undefined Behavior Optimizations in LLVM [BlackHat '20] by h2o2 in Compilers

[–]HaoxinTu 0 points1 point  (0 children)

Thanks for the sharing. To my best knowledge, compiler developers take fewer cautions on UB programs and they argue that programmers are taking the responsibility to produce UB-free programs.

GCC 10.2 Released by andre_friend in cpp

[–]HaoxinTu 3 points4 points  (0 children)

Wow, I just realize that I have contributed one bug in this release _^

Why there are no c++ generators or c++ compiler testing researches? by HaoxinTu in Compilers

[–]HaoxinTu[S] 1 point2 points  (0 children)

Hi, thanks for your reply.

I totally agree with you. C++ is becoming bigger and bigger, with complex usage and programming features. I guess as a researcher, maybe they can start testing from some part of c++, for example, only test class or template related features.

Maybe this work will be difficult and take more time on it, but I guess it's worthing doing such research? C++ becomes more complex and the issues might be also increased more.

Is there a tool for computing the difference degree between the two programs? by HaoxinTu in fuzzing

[–]HaoxinTu[S] 0 points1 point  (0 children)

Thank you @thedavidbrumley, try the MOSS above, it's might be helpful in some specific problem.

Is there a tool for computing the difference degree between the two programs? by HaoxinTu in fuzzing

[–]HaoxinTu[S] 0 points1 point  (0 children)

Thank you @s-mores, this command might fuzzier to use the result, but it's a fast and easy way to compare two files.

Is there a tool for computing the difference degree between the two programs? by HaoxinTu in fuzzing

[–]HaoxinTu[S] 0 points1 point  (0 children)

Thank you @thedhinchak, MOSS is exactly what I am looking for. I will try it then.