(no subject)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

omiga
Hi everyone,
 
 Llvm-gcc compiles the programs into bytecodes with some optimizations. How can I get unoptimized bytecodes?
 Thanks.
 
 
Regards,
 
-Ying

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Seung Jae Lee
Hello.
Please use llvm-gcc4 with -O[01234] options.
You can see the example here:
http://llvm.org/docs/GettingStarted.html#tutorial4

Seung J. Lee

---- Original message ----

>Date: Wed, 30 May 2007 00:18:41 +0800
>From: "omiga" <[hidden email]>  
>Subject: [LLVMdev] (no subject)  
>To: "llvmdev" <[hidden email]>
>
>   Hi everyone,
>    
>    Llvm-gcc compiles the programs into bytecodes with
>   some optimizations. How can I get unoptimized
>   bytecodes?
>    Thanks.
>    
>    
>   Regards,
>    
>   -Ying
>________________
>_______________________________________________
>LLVM Developers mailing list
>[hidden email]         http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

------------------------------------------------
Phone: +1-217-377-1932
Webpage: http://struct.er.ro

Graduate Research Assistant
Dept. of Civil & Environmental Engineering
University of Illinois at Urbana-Champaign
------------------------------------------------
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Seung Jae Lee
In reply to this post by omiga
If you use llvm-gcc3, you can make an unoptimized like this:
llvm-gcc -S hello.c -o hello.s

Seung J. Lee
---- Original message ----

>Date: Wed, 30 May 2007 00:18:41 +0800
>From: "omiga" <[hidden email]>  
>Subject: [LLVMdev] (no subject)  
>To: "llvmdev" <[hidden email]>
>
>   Hi everyone,
>    
>    Llvm-gcc compiles the programs into bytecodes with
>   some optimizations. How can I get unoptimized
>   bytecodes?
>    Thanks.
>    
>    
>   Regards,
>    
>   -Ying
>________________
>_______________________________________________
>LLVM Developers mailing list
>[hidden email]         http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Scott Graham-3
In reply to this post by omiga
Using

llvm-gcc -emit-llvm -O0 -S blah.c

will give you blah.s that is unoptimized. I guess passing that to llvm-as would get you an unoptimized .bc.

llvm-as -debug-pass=Arguments blah.ll says it is only doing
Pass Arguments:  -domtree -etforest -verify

scott

On 5/29/07, omiga <[hidden email]> wrote:
Hi everyone,
 
 Llvm-gcc compiles the programs into bytecodes with some optimizations. How can I get unoptimized bytecodes?
 Thanks.
 
 
Regards,
 
-Ying

_______________________________________________
LLVM Developers mailing list
[hidden email]         <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://llvm.cs.uiuc.edu" target="_blank"> http://llvm.cs.uiuc.edu
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

omiga
It's worked.
Thanks for your replies, Lee and Scott.
 
 
-Ying
 

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev