[LLVMdev] bytecode

shding at mtu.edu shding at mtu.edu
Fri Sep 9 09:19:06 PDT 2005


Hi,
   I'm changing bytecode format a little bit, i.e. for 2 operands
Instructions, the original is like this:
    01-00:Opcode type
    07-02:Opcode
    15-08: Instruction type
    23-16: Operand#1
    31-24: Operand#2
My change is like this:
    01-00:Opcode type
    07-02:Opcode
    15-08: Instruction type
    16: myflag1
    17: myflag2
    24-18: Operand#1
    31-25: Operand#2
    I do the corresponding changes in both Writer.cpp and Reader.cpp.But
when I compile, errors take place when "linking comp_genericeh.bc
component..". comp_genericeh.bc is some bytecode in
/runtime/GCCLibrary.
    I wonder is it because the comp_genericeh.bc is produced by orignal
bytecode format so that the changed bytecode read& write lib cann't
encode and decode it correctly?

-- 
Shuhan




More information about the llvm-dev mailing list