I would try that ..Thanks Another thing that I want to do is to randomize functions within a program (or file ), whatever is easier to do in llvm .Also please tell me how can I randomize global variables ? Thanks TS Chris Lattner <sabre at nondot.org> wrote: On Mon, 30 May 2005, Tanu Sharma wrote:> I have been trying to compile the SPEC benchmark but have failed even > after several attempts.The first error I get while trying to run is :There are two ways to do this: 1. Use the llvm-test harness 2. Use the official spec harness with -Wl,-native-cbe or -Wl,-native flags to llvm-gcc. -Chris> -------------------------------------------------------------------- > > Error loading program '../00000002/gzip_base.x86_linux.bc': Can't open file: ../00000002/gzip_base.x86_linux.bc > > ----------------------------------------------------------------------- > > > > Has anyone tried doing this ?Could you please tell me the changes required to compile it with llvm. > > > > Thanks > > TS > > > --------------------------------- > Yahoo! Mail Mobile > Take Yahoo! Mail with you! Check email on your mobile phone.-Chris -- http://nondot.org/sabre/ http://llvm.cs.uiuc.edu/ _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev --------------------------------- Discover Yahoo! Stay in touch with email, IM, photo sharing & more. Check it out! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050602/423f3bac/attachment.html>
Can you explain a little bit more about what you mean by "randomize" functions or global variables? What aspect of them do you want to randomize? Their address? Their value? Something else? Reid. On Thu, 2005-06-02 at 13:53 -0700, Tanu Sharma wrote:> I would try that ..Thanks > > Another thing that I want to do is to randomize functions within a > program (or file ), whatever is easier to do in llvm .Also please tell > me how can I randomize global variables ? > > Thanks > TS > > > Chris Lattner <sabre at nondot.org> wrote: > On Mon, 30 May 2005, Tanu Sharma wrote: > > > I have been trying to compile the SPEC benchmark but have > failed even > > after several attempts.The first error I get while trying to > run is : > > There are two ways to do this: > > 1. Use the llvm-test harness > 2. Use the official spec harness with -Wl,-native-cbe or -Wl,- > native flags > to llvm-gcc. > > -Chris > > > > -------------------------------------------------------------------- > > > > Error loading program '../00000002/gzip_base.x86_linux.bc': > Can't open file: ../00000002/gzip_base.x86_linux.bc > > > > > ----------------------------------------------------------------------- > > > > > > > > Has anyone tried doing this ?Could you please tell me the > changes required to compile it with llvm. > > > > > > > > Thanks > > > > TS > > > >> --------------------------------- > > Yahoo! Mail Mobile > > Take Yahoo! Mail with you! Check email on your mobile phone. > > -Chris > > -- > http://nondot.org/sabre/ > http://llvm.cs.uiuc.edu/ > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev > > > ______________________________________________________________________ > Discover Yahoo! > Stay in touch with email, IM, photo sharing & more. Check it out! > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050602/7c218473/attachment.sig>
By randomization of functions I mean the manner in whch they are called , so that has to do with address.I wish to randomize the order of calls made to functions when a program is run. Reid Spencer <reid at x10sys.com> wrote:Can you explain a little bit more about what you mean by "randomize" functions or global variables? What aspect of them do you want to randomize? Their address? Their value? Something else? Reid. On Thu, 2005-06-02 at 13:53 -0700, Tanu Sharma wrote:> I would try that ..Thanks > > Another thing that I want to do is to randomize functions within a > program (or file ), whatever is easier to do in llvm .Also please tell > me how can I randomize global variables ? > > Thanks > TS > > > Chris Lattner wrote: > On Mon, 30 May 2005, Tanu Sharma wrote: > > > I have been trying to compile the SPEC benchmark but have > failed even > > after several attempts.The first error I get while trying to > run is : > > There are two ways to do this: > > 1. Use the llvm-test harness > 2. Use the official spec harness with -Wl,-native-cbe or -Wl,- > native flags > to llvm-gcc. > > -Chris > > > > -------------------------------------------------------------------- > > > > Error loading program '../00000002/gzip_base.x86_linux.bc': > Can't open file: ../00000002/gzip_base.x86_linux.bc > > > > > ----------------------------------------------------------------------- > > > > > > > > Has anyone tried doing this ?Could you please tell me the > changes required to compile it with llvm. > > > > > > > > Thanks > > > > TS > > > >> --------------------------------- > > Yahoo! Mail Mobile > > Take Yahoo! Mail with you! Check email on your mobile phone. > > -Chris > > -- > http://nondot.org/sabre/ > http://llvm.cs.uiuc.edu/ > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev > > > ______________________________________________________________________ > Discover Yahoo! > Stay in touch with email, IM, photo sharing & more. Check it out! > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev_______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050602/16a4199c/attachment.html>
Tanu, You've seen ? :- http://www.st.cs.uni-sb.de/~lindig/src/quest/ Don't know whether it is applicable to what you are trying to achieve but I thought I should point it out in case it is useful to you and you have not seen it. Aaron ----- Original Message ----- From: Tanu Sharma To: LLVM Developers Mailing List Sent: Thursday, June 02, 2005 9:53 PM Subject: [LLVMdev] Randomizing Functions & Global variables I would try that ..Thanks Another thing that I want to do is to randomize functions within a program (or file ), whatever is easier to do in llvm .Also please tell me how can I randomize global variables ? Thanks TS Chris Lattner <sabre at nondot.org> wrote: On Mon, 30 May 2005, Tanu Sharma wrote: > I have been trying to compile the SPEC benchmark but have failed even > after several attempts.The first error I get while trying to run is : There are two ways to do this: 1. Use the llvm-test harness 2. Use the official spec harness with -Wl,-native-cbe or -Wl,-native flags to llvm-gcc. -Chris > -------------------------------------------------------------------- > > Error loading program '../00000002/gzip_base.x86_linux.bc': Can't open file: ../00000002/gzip_base.x86_linux.bc > > ----------------------------------------------------------------------- > > > > Has anyone tried doing this ?Could you please tell me the changes required to compile it with llvm. > > > > Thanks > > TS > >> --------------------------------- > Yahoo! Mail Mobile > Take Yahoo! Mail with you! Check email on your mobile phone. -Chris -- http://nondot.org/sabre/ http://llvm.cs.uiuc.edu/ _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev ------------------------------------------------------------------------------ Discover Yahoo! Stay in touch with email, IM, photo sharing & more. Check it out! ------------------------------------------------------------------------------ _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050602/bd59a855/attachment.html>
Aaron, On Thu, Jun 02, 2005 at 10:38:58PM +0100, Aaron Gray wrote:> http://www.st.cs.uni-sb.de/~lindig/src/quest/I don't know about Tanu, but we can certainly use this in finding bugs in LLVM! This has been listed as an "open project" for a long time [1], but someone already implemented it, saving us the time and effort. Thanks for the link! [1] http://llvm.cs.uiuc.edu/OpenProjects.html#misc_new * Random test vector generator: Use a C grammar to generate random C code; run it through llvm-gcc, then run a random set of passes on it using opt. Try to crash opt. When opt crashes, use bugpoint to reduce the test case and mail the result to yourself. Repeat ad infinitum. -- Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
Apparently Analagous Threads
- [LLVMdev] Randomizing Functions & Global variables
- [LLVMdev] Randomizing Functions & Global variables
- [LLVMdev] Randomizing Functions & Global variables
- [LLVMdev] Randomizing Functions & Global variables
- [LLVMdev] request for more info about "disassembler" open ended project