Category : armv7

I am building a lifter that translates armv7m assembly instructions into llvm IR. A sample of my C++ code is: IRBuilder<> builder(TheContext); //line 0 llvm::ConstantInt* I_0 = llvm::ConstantInt::get(TheContext, llvm::APInt(/nbits/32, 0, true)); //line 1 V = builder.CreateAlloca(Type::getInt32Ty(TheContext), nullptr, "V"); //line 2 Value* s3 = builder.CreateStore(I_0, V, /isVolatile=/false); //line 3 Value* loaded_V = builder.CreateLoad(V); //line 4 Value* ..

Read more

Can I execute some code(asm -> hex) in the heap memory? The x86 architecture was successful, but armv8 failed. (tested on Android os) Is it because the code is not designed to run in the heap area in the ARM cpu? thanks for reading test code usinged char prefix[] = { 0xE0,0x01,0x80,0x42,0xc0,0x03,0x5F,0xD6}; // ARMv8 char ..

Read more

I am porting code from x86 to armv7. The code is consist of several custom libs: one of them is LibC, so I have my own implementation of memset and other similar functions. But I faced a crash on arm. class WindowFrameFake { public: WindowFrameFake(); ~WindowFrameFake() { } private: Vector<Button*> m_buttons1; Vector<Button*> m_buttons2; LG::Color m_color ..

Read more