On 11/29/2016 06:48 PM, Wuweijia wrote:
> I compile a demo testcase with gcc 4.9 , run it in aarch64 server with valgrind . valgrind report there is some memory error as below. I do not think that it maybe a problem.
The testAlgo.cpp that was in the attached testcase.rar compiles to less
than 2KB of code using gcc-4.9.2 on a RaspberryPi3 running in 32-bit mode.
So you should run "g++ -S testAlgo.cpp" then look at testAlgo.s and
analyze the generated code. Or, run "objdump -d ./a.out" on the binary.
Anyway: "g++ testAlgo.cpp; valgrind-3.12 ./a.out" gave no complaints.