3 clang
--target=powerpc64le-linux-gnu
-Og -g -c -o jit_test.o jit_test.cpp
4 powerpc64le-linux-gnu-objcopy
--set-section-flags .wtext
=CONTENTS
,ALLOC
,LOAD
,CODE jit_test.o
5 powerpc64le-linux-gnu-gcc
-static -o jit_test jit_test.o
8 printf -v ih
"%#x" "$i"
10 printf -v jh
"%#x" "$j"
11 .
/jit_test
"$ih" "$jh"
12 echo "return value $? -- should be $(((i + j) & 0xFF))"