similar to: [LLVMdev] Re: How could I get memory address for each assemble code?

Displaying 20 results from an estimated 30000 matches similar to: "[LLVMdev] Re: How could I get memory address for each assemble code?"

2004 Sep 13
2
[LLVMdev] How could I get memory address for each assemble instruction?
Hi all, I am trying to disassemble *.bc to assemble code by using llvm-dis command, but what I got is like the following. So how could I get the assemble code like objdump? I mean the memory address for each instruction. Thanks Qiuyu llvm-dis: .text .align 16 .globl adpcm_coder .type adpcm_coder, @function adpcm_coder: .LBBadpcm_coder_0: # entry sub %ESP, 116 mov DWORD PTR [%ESP + 12],
2004 Sep 21
0
[LLVMdev] Re: Re: How could I get memory address for each assemble
Thanks Andrew. I still do not understand your method. Would you mind telling me more? Thanks. But for hash problem, it is common problem for hash. We cannot make sure the mapping is 1 to 1. I used a way to grab the BB address, but there is some limitation. What I did is that I rewrote some part of disassemble tool. During the disassembling, I check all the conditional/unconditional
2004 Aug 19
0
[LLVMdev] How could I get memory address for each basic block?
I'd be interested to hear how that's being done - if Brian would reply to the list about it, I'd appreciate it. -mike On Aug 19, 2004, at 3:39 PM, Vikram S. Adve wrote: > Qiuyu, > > The dynamic optimization project (an internal research project in our > group) uses some way to map LLVM basic blocks to native code > addresses. If this is what you want, perhaps you
2004 Aug 19
3
[LLVMdev] How could I get memory address for each basic block?
Qiuyu, The dynamic optimization project (an internal research project in our group) uses some way to map LLVM basic blocks to native code addresses. If this is what you want, perhaps you can ask Brian Gaeke (gaeke at uiuc.edu) to give you some information about how that is done. --Vikram http://www.cs.uiuc.edu/~vadve http://llvm.cs.uiuc.edu/ On Aug 19, 2004, at 5:11 PM, Misha Brukman
2004 Aug 19
2
[LLVMdev] How could I get memory address for each basic block?
On the pervious mail, I am trying to add label for each basic basic because I think I could get address by using nm if nm can show the address of each label, but it seems not . so do you guys have some idea how to get address for each basic block? Thanks. >I am trying to get the memory address of each basic block. So far I am trying to add the label >into each basic block, actually I need
2004 Aug 19
0
[LLVMdev] How could I get memory address for each basic block?
On Thu, Aug 19, 2004 at 01:13:42PM -0700, Zhang Qiuyu wrote: > On the pervious mail, I am trying to add label for each basic basic > because I think I could get address by using nm if nm can show the > address of each label, but it seems not . so do you guys have some > idea how to get address for each basic block? Thanks. LLVM does not have a notion of C-style 'labels' that
2004 May 14
2
[LLVMdev] Can I disable the optimizaiton for llvmgcc?
Hi all LLVMor, I just tried to compile a simple code and analyze the number of the basic blocks. But after compile, what I got, the bytecode is seems to be optimized bytecode. So the information of basic blocks is not what I expected. I want ot use the code as example to see how some of code optimization methods work. However, after compiling file using llvm test.c -o test, bytecode file
2005 May 11
3
[LLVMdev] Question About inserting Instruction?
Hi, I am working on a project with LLVM. What I need to do is to generate/insert some dummy/dead basic blocls which never have chance to be executed and put some instructions in those dummy/dead basic blocks. So far, the dummy/dead BB insertion is done. I am trying insert instructions in those dummy/dead BB. Actually, I can insert the legal instructions to dummy/dead BB, however, I really want
2005 Feb 03
2
[LLVMdev] question about compile path
Hi, I have a question about install path. Some one installs llvm1.4 under /opt/llvm as root. However, when I create a project under my home directory, I cannot do Make correctly. It should be enviroment issue, but I cannot fix it. The environment is as the following, /opt/llvm : // llvm 1. 4 /home/qiuyu/ ://my home directory /home/qiuyu/project/statBB ://my project directory I create a
2018 Jan 10
3
llvm-mc assembler, GNU as, and pc-relative branches for Arm/AArch64/Mips
# Summary As a consequence of comparing the RISC-V LLVM MC assembler to the RISC-V GNU assembler I've noticed that a number of targets have quite different handling for pc-relative jumps/branches with immediate integer operands in llvm-mc vs GNU as. I'll admit that this isn't likely to occur in hand-written code (as you'd almost always prefer to use a label), but thought it was
2004 Sep 21
1
[LLVMdev] Re:Re:Is there any way to modify basic block like adding junk code
Thanks Chris. I did inserting function into code before using the way you mentioned, such as call a external function. But coud I insert some assemble instructions into *.bc ? what I want to do is to implement polymorphic engine like ADM. It can change the binary code which looks like different but the functionality is exactly same. The simple way to do it is to add some junk code like NOP(
2004 Sep 22
0
[LLVMdev] The story is for why I need grab the entry address of BB :)
I mentioned a way which I used to grab the entry address of BB in previous email for Andrew. As I said, there is a limitation. And I am not sure it can be used for other cases. For my research code compression, my final goal is to improve the performance and keep code size as small as possible. Now, for the first step I want to code a program which can load and run elf binary code. Here, I want
2004 Nov 29
2
[LLVMdev] Could I get bytecode of SPEC ?
Hi, Under directory, /llvm/test/programs/external/spec, It seems there are several makefiles for SPEC. I am just wondering could I get the SPEC code or bytecode. Thanks in advance. Qiuyu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041128/4d33a3bf/attachment.html>
2004 Sep 20
1
[LLVMdev] Is there any way to modify basic block like adding junk code or ...
Hi , Is there any way to modify code like adding junk code or mess up the order of a bunch of codes(in same basic block) which is no dependency? I saw some options like -dce -deadargelim for 'opt' , but what I want is to reverse to do it. I mean adding some dead code or junk code. Actually what I want is to implement a ploymorphic engine. Coud I do those by using llvm? Thanks. Qiuyu
2010 Jul 27
1
[LLVMdev] Is there a way to address an instruction?
Hi, >> In the objdump for binary, there is always an address associated with an >> instruction. >> In the bitcode file, is there a way to address an instruction? It does >> not have to be a single ID like objdump. > no, there is no way in general. You can always start a new basic block > just before your instruction and take the address of that basic block. >
2004 Nov 29
0
[LLVMdev] Could I get bytecode of SPEC ?
On Nov 29, 2004, at 12:46 AM, Zhang Qiuyu wrote: > Hi, >   > Under directory, /llvm/test/programs/external/spec, It seems there are > several makefiles for SPEC. I am  just wondering could I get the SPEC > code or bytecode. Thanks in advance. Because of the SPEC licensing restrictions, we cannot distribute SPEC to non-UIUC users. I expect UCLA would have a site-wide license so
2010 May 19
4
[LLVMdev] hexcode from llvm
Hi all, I am doing emulation on a custom processor. For this I need hexcode for the C application program . Is there any llvm command/function that can spit out the hexcode just like objdump in gcc? Thanks -- View this message in context: http://old.nabble.com/hexcode-from-llvm-tp28612686p28612686.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2016 Feb 27
2
Fwd: X86 assembler cannot jump NEAR?
> On Feb 27, 2016, at 4:36 AM, Jun Koi via llvm-dev <llvm-dev at lists.llvm.org> wrote: > The problem is that llvm-mc always compiles "jmp" this as short jump, no matter where the target is. Hence my question. I dont know if there is any way to change this behavior. Looks like a bug to me so far. It isn't. It's just created some assembly which, when assembled, may
2012 Jun 07
2
[LLVMdev] MC disassembler for ARM
Hi Tim, Thanks a lot for the reply. I tested libc.so which is a shared library. llvm-objdump also report some disassemble errors. Could you please tell me more about $a, $t and $d symbols? How these symbols are used to define different regions? Where I can find this symbols in ELF object file? Thanks, David I'm now try to find a decoder of ARM instructions in oder On Thu, Jun 7, 2012
2004 Aug 19
1
[LLVMdev] Could insert a label into basic block?
Hi, I am trying to get the memory address of each basic block. So far I am trying to add the label into each basic block, actually I need add the label at front of each basic block and then I can use command 'nm' to find the memory address for each basic block. That's the way I got. I don't know if there is another way to do it. Thanks. So now I need add label to each basic