蜡笔小新
2014-Apr-08 08:52 UTC
[LLVMdev] How to get started with LLVM if I am to insert a NOP instruction randomly by adjusting the Code Generation Algorithm?
Hi, everyone. I am so happy to join the LLVM email list to share some ideas and discuss technical problems. As listed in the topic, I was trying to insert a NOP instruction in a program by modifying the compiler. I read through the documentation about the backend of LLVM. However, it is too general to implement this. Can someone give me some advice on this? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140408/fa65d88b/attachment.html>
waxiadao@gmail.com
2014-Apr-08 10:34 UTC
[LLVMdev] How to get started with LLVM if I am to insert a NOP instruction randomly by adjusting the Code Generation Algorithm?
For you,the best way I think to start is to run llc to translate an ir file,which can be generated by clang with an existing C source,to a cppbackend output.Then you can know how instructions are built. 蜡笔小新 <841224078 at qq.com>于2014年4月8日星期二写道:> Hi, everyone. > > I am so happy to join the LLVM email list to share some ideas and discuss > technical problems. As listed in the topic, I was trying to insert a NOP > instruction in a program by modifying the compiler. > > I read through the documentation about the backend of LLVM. However, it is > too general to implement this. Can someone give me some advice on this? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140408/5785301d/attachment.html>
Jonas Wagner
2014-Apr-10 07:07 UTC
[LLVMdev] How to get started with LLVM if I am to insert a NOP instruction randomly by adjusting the Code Generation Algorithm?
Hi, you might also want to have a look at this thread on randomizing compilation by inserting NOPs (and other techniques): http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-August/065153.html Cheers, Jonas On Tue, Apr 8, 2014 at 10:52 AM, 蜡笔小新 <841224078 at qq.com> wrote:> Hi, everyone. > > I am so happy to join the LLVM email list to share some ideas and discuss > technical problems. As listed in the topic, I was trying to insert a NOP > instruction in a program by modifying the compiler. > > I read through the documentation about the backend of LLVM. However, it is > too general to implement this. Can someone give me some advice on this? > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >