I write three different codes to copy data from a 4GB buffer to another 4GB buffer. I measure their bandwidth and the cache miss with perf stat. The code is shown below: Compiling it with gcc memcpy-test.c -o memcpy-test. The first one uses memcpy to copy memcpy_sz bytes data for each time. I test this with 8B, 64B, 4KB, 512KB,
Tag: architecture
How to get the correct binary for my architecture. Trying to run ARM (.s) files
I’ve used the following commands for cross-compilation on ubuntu to run simple.s but am getting an error The commands are: I tried to obtain the binary’s architecture by and my machine’s architecture by and found that they were different. I believe getting the right binary for the architecture will solve the problem. Is that true? Here is simple.s How can
How can I know if I am running in a 64bits or a 32bits linux from within a perl script?
I don’t want to directly access the shell (for example to use uname). I am looking for a fast-forward way to detect the architecture (only if it is 32 or 64 bits), once I know I am on linux. Answer There are 3 separate questions you could be asking: Note for all that there’s not a single magic “64-bit”, there’s