Category : arm

In this Question , I need to implement a simple encryption and decryption algorithm in ARM assembly. Given a text message (string) stored in the memory, the encryption program gets the ASCII code of each character and apply this method *the method is: Invert the first and the second bits of the ASCII code of ..

Read more

I was reading this SO question and found that best practice is to return by a value. so I ran below two examples in godbolt with ARM gcc 10.2(linux) compiler to get assembly instructions for both 1. #include <iostream> #include <vector> std::vector<int> return_vector(void) { std::vector<int> tmp {1,2,3,4,5}; return tmp; } int main() { std::vector<int> && ..

Read more

I meet a strange problem when try insert a std::set to another Code maybe like below set<A> sa {}; set<A> sb {a ,b, c}; sa.insert(sb.begin(), sb.end()); it’s OK on most of archs But on one ARM env it core dumped for all usage like this added If I replace with below code also can pass ..

Read more

I’d like to perform polynomial multiplication of two uint64_t values (where the least significant bit (the one got by w&1) is the least significant coefficient (the a0 in for w(x)=∑iai*xi )) on ARM and get the least significant 64 coefficients (a0…a63) of the result as uint64_t (so result>>i&1 is ai). It’s not clear to me, ..

Read more

I am trying to cross compile. Actually, I am knew in it. I need to flash the linux operating system on Tx6U-8130 board from KaRo electronics. I downloaded the files arm-linux_src.tar.bz2, gcc-arm-cortexa9-linux-gnueabi.tar.bz2 and tool-chain-src.tar.bz2 from KaRo Electronics website. I am using kali-linux and my umane -m is x86_64. I have created 2 folders this mkdir ..

Read more