heng zhang via llvm-dev
2021-Jan-14 07:35 UTC
[llvm-dev] [Question] Is the execution path of clang the same when using clang to compile the same code twice?
Hello, everyone! I have a c code for HelloWorld,I use the command(clang -o0 HelloWorld.c -o helloworld) to compile the HelloWorld program twice. I find the clang has a different execution path, so I am very confused, I want to know what leads to this result. Thanks!
David Blaikie via llvm-dev
2021-Jan-14 17:26 UTC
[llvm-dev] [Question] Is the execution path of clang the same when using clang to compile the same code twice?
What testing have you done that shows this difference? In general, Clang/LLVM are intended to be deterministic (same inputs produce the same output - the execution path to get there can vary in some cases, due to unordered containers, etc, that should produce the same output) On Thu, Jan 14, 2021 at 9:19 AM heng zhang via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello, everyone! I have a c code for HelloWorld,I use the command(clang > -o0 HelloWorld.c -o helloworld) to compile the HelloWorld program twice. I > find the clang has a different execution path, so I am very confused, I > want to know what leads to this result. Thanks! > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210114/422b15e8/attachment.html>