Displaying 20 results from an estimated 30000 matches similar to: "[LLVMdev] I try to compile to LLVM code"
2010 Aug 12
0
[LLVMdev] I try to compile to LLVM code
Hello Borneq,
If you want to compile bitcode into assembly, you need to invoke the llvm-as and
llc commands on it to convert it from LLVM Assembly source to bitcode and then
native assembly source instead of llvm-gcc.
If that doesn't work, post back here,
--Sam
----- Original Message ----
> From: Borneq <borneq at wp.pl>
> To: llvmdev at cs.uiuc.edu
> Sent: Wed, August
2010 Aug 13
1
[LLVMdev] I try to compile to LLVM code
Samuel Crow wrote:
>
> If you want to compile bitcode into assembly, you need to invoke the
> llvm-as and
> llc commands on it to convert it from LLVM Assembly source to bitcode and
> then
> native assembly source instead of llvm-gcc.
>
llvm-as compiled hello.s to hello.s.bc. How link it with stdio - I use
printf
llc is virtual machine? If I call llc with hello.s.bc it do
2011 Jun 01
5
[LLVMdev] Thinking about "whacky" backends
I've been tossing around some ideas about high-level backends.
Say, have LLVM emit Perl code.
Sounds whacky but isn't. It's good for the first bootstrapping phase in
environments where you don't have a C compiler, where you don't have a
cross-compiled binary for download, but you can execute Perl.
It also makes a great inspect-the-sources-with-an-editor stage for
aspiring
2010 Sep 29
1
[LLVMdev] Fwd: bitcode / bytecode
Anyone,
can you say what was the reason to rename bytecode? I am still interesting
in
2010/9/29 Duncan Sands <baldrick at free.fr>
Hi Ariel,
> As long as I know English the word "bit" is a "small pice", . Why in set
of
> documentation ir is "bytecode", in other set or llvm source is "bitecode"?
> What is the right? Different people call the
2011 Sep 12
2
[LLVMdev] llvm-gfortran problems
Hmm.. I didn't explain the problem completely last time. I am creating a
drop-in replacement for gcc and gfortran that runs an additional pass on the
bitcode before generating the native binary. Here's whats happening: If the
source code compilation process builds a static library (.a archive file), I
need a means to link the `.a' file statically into the application. So if
the
2011 Sep 12
2
[LLVMdev] llvm-gfortran problems
Thats correct. But using llc becomes a problem when I have archives (.a
files). I could, in theory, extract its contents to a tempdir and then use
llc and link but just wondering if there is a more elegant solution.
Ashay
On Mon, Sep 12, 2011 at 3:00 PM, Dmitry N. Mikushin <maemarcus at gmail.com>wrote:
> Ashay,
>
> If I understand correctly, in hw.o you would have llvm
2011 Sep 12
0
[LLVMdev] llvm-gfortran problems
Sorry, at what step do you need archive? llc emits binary, it does not
perform any linking, thus it does not need anything except the input
bytecode file. Then during linking you can link whatever archives of
binaries you want.
2011/9/13 Ashay Rane <ashay.rane at tacc.utexas.edu>:
> Thats correct. But using llc becomes a problem when I have archives (.a
> files). I could, in theory,
2010 Sep 29
4
[LLVMdev] bitcode / bytecode
Hi list,
As long as I know English the word "bit" is a "small pice", . Why in set of
documentation ir is "bytecode", in other set or llvm source is "bitecode"?
What is the right? Different people call the same thing such differently.
--
best regards
Ariel
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Sep 12
0
[LLVMdev] llvm-gfortran problems
I see. And what's the purpose for outputting bitcode into *.o and *.a
files? Do you want to perform an LLVM pass on linking step?
2011/9/13 Ashay Rane <ashay.rane at tacc.utexas.edu>:
> Hmm.. I didn't explain the problem completely last time. I am creating a
> drop-in replacement for gcc and gfortran that runs an additional pass on the
> bitcode before generating the native
2011 Sep 12
1
[LLVMdev] llvm-gfortran problems
No, I am running the LLVM pass at the compilation step. So by the time I
reach the link step, the transformed bitcode has been generated.
Ashay
On Mon, Sep 12, 2011 at 4:12 PM, Dmitry N. Mikushin <maemarcus at gmail.com>wrote:
> I see. And what's the purpose for outputting bitcode into *.o and *.a
> files? Do you want to perform an LLVM pass on linking step?
>
> 2011/9/13
2013 Mar 08
0
[LLVMdev] Tool to convert to backend assembly instruction file
Teja,
Your mention of .s being bytecode confuses me, but if you're asking how to lower a bitcode (.bc) or IR file (.ll) to assembly (.s) than llc is the tool you are looking for.
llc -O2 path/to/bitcode/input.bc -o output.s
-Chris
On Mar 7, 2013, at 10:39 PM, teja tamboli wrote:
> Hello,
>
> I am looking for tool to convert file from either (.s) bytecode or (.bc) bitcode to
2013 Mar 13
2
[LLVMdev] Generating IR bytecode files of httpd source code
Hi,
I want to compile apache httpd using LLVM compiler. However, I am
interested in generating llvm bytecode files [.s or .ll] files along with
its executables. I followed steps mentioned in link :
http://stackoverflow.com/questions/13851661/compiling-apache-httpd-into-llvm-bytecode-using-clang
However after following all instructions when I compile httpd with
following options I get directly
2013 Mar 08
2
[LLVMdev] Tool to convert to backend assembly instruction file
Hello,
I am looking for tool to convert file from either (.s) bytecode or (.bc)
bitcode to .asm file. Basically assembly instruction file for my x86
backend. I think so we can use llvm-objdump. However I am not able to
figure out its exact options. Could you please tell me how to do that?
--
Thanks,
Teja
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Sep 12
0
[LLVMdev] llvm-gfortran problems
Ashay,
If I understand correctly, in hw.o you would have llvm bytecode, while
linker expects regular object binary. Probably first you need to emit
asm out of bytecode using llc?
- D.
2011/9/12 Ashay Rane <ashay.rane at tacc.utexas.edu>:
> Hello,
> Sorry for the late reply. Using dragonegg worked well, thanks all!
> Just as a note... I had to use llvm-ld during the link step
2012 Nov 19
2
[LLVMdev] Inserting dead code in IR byte code
Hi all,
I am working on my Master's project in security and for this I need to do
following things :
1. I have a IR bytecode of the main program. I want to insert dead code
from other source files (e.g. cygwin files or the Linux files) in main
program's IR byte code.
2. In order to insert code, I can try following two ways :
(i) I have observed that these IR bytecode files are just
2007 Jul 05
2
[LLVMdev] PATCH (rest of code changes) "bytecode" --> "bitcode"
Here is the bulk of the sanitizing.
My residual doubts center around the question
whether we still do/want to support (un)compressed *byte*code
in 2.0/2.1.
I need a definitive word on this to proceed.
My understanding is that bytecode is already gone, but there are
still some functions/enums that really deal with *byte*code
(instead of *bit*code).
I did not touch those areas, so the attached
2007 Sep 27
1
[LLVMdev] (external) library issues
Hello,
I'm considering LLVM for a project, and I wanted to take a look at its
bytecode representation/instruction set. So I decided to try to compile
the /bin/ls command as bytecode (no particular reason to use ls) and
look at it. So I got GNU coreutils from
http://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.gz, built it to make
sure it works, then replaced gcc, ld, ar and ranlib with
2012 Nov 19
0
[LLVMdev] Inserting dead code in IR byte code
Hi Teja,
> I am working on my Master's project in security and for this I need to do
> following things :
>
> 1. I have a IR bytecode of the main program. I want to insert dead code from
> other source files (e.g. cygwin files or the Linux files) in main program's IR
> byte code.
do you mean adding additional functions? Or do you mean adding extra
instructions to
2013 Mar 13
0
[LLVMdev] Generating IR bytecode files of httpd source code
On 3/12/13 7:16 PM, teja tamboli wrote:
> Hi,
>
> I want to compile apache httpd using LLVM compiler. However, I am
> interested in generating llvm bytecode files [.s or .ll] files along
> with its executables. I followed steps mentioned in link :
> http://stackoverflow.com/questions/13851661/compiling-apache-httpd-into-llvm-bytecode-using-clang
>
> However after
2011 Jul 10
0
[LLVMdev] How to get line number of a function in a bitcode file?
I tried to install the SAFECode in LLVM 2.6 following the instruction in
Install.html. But when I do the step:
# cd projects/poolalloc
# make
I get the errore below:
llvm[2]: Compiling qsort.c for Release build (bytecode)
llvm[2]: Compiling strdup.c for Release build (bytecode)
llvm[2]: Compiling qsort.c for Release build
llvm[2]: Compiling strdup.c for Release build
llvm[2]: Compiling qsort.ll