git clone https://github.com/YuzukiHD/FreeRTOS-HIFI4-DSP.git cd FreeRTOS-HIFI4-DSP wget https://github.com/YuzukiHD/FreeRTOS-HIFI4-DSP/releases/download/Toolchains/xtensa-hifi4-dsp.tar.gz mkdir -p tools/xtensa-hifi4-gcc mv xtensa-hifi4-dsp.tar.gz tools/xtensa-hifi4-gcc/ cd tools/xtensa-hifi4-gcc/ tar xvf xtensa-hifi4-dsp.tar.gz cd -
# Parse arguments and put into argument list of the script opts="$(getopt -n "${0##*/}" -o c: -- "$@")" || exit $? evalset -- "$opts"
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
whiletrue ; do case"$1"in -c) GENIMAGE_CFG="${2}"; shift 2 ;; --) # Discard all non-option parameters shift 1; break ;; *) die "unknown option '${1}'" ;; esac done
[ -n "${GENIMAGE_CFG}" ] || die "Missing argument"
# Pass an empty rootpath. genimage makes a full copy of the given rootpath to # ${GENIMAGE_TMP}/root so passing TARGET_DIR would be a waste of time and disk # space. We don't rely on genimage to build the rootfs image, just to insert a # pre-built one in the disk image.
2K performance run parameters for coremark. CoreMark Size : 666 Total ticks : 26696 Total time (secs): 26 Iterations/Sec : 1923.07692 Iterations : 50000 Compiler version : GCC4.2.0 (Xtensa 14.04 release) Compiler flags : -Os Memory location : STACK seedcrc : 0xe9f5 [0]crclist : 0xe714 [0]crcmatrix : 0x1fd7 [0]crcstate : 0x8e3a [0]crcfinal : 0xa14c Correct operation validated. See README.md for run and reporting rules. CoreMark 1.0 : 1923.07692 / GCC4.2.0 (Xtensa 14.04 release) -Os / STACK
GCC
Dhrystone Benchmark, Version 2.1 (Language: C)
Program compiled without 'register' attribute
Execution starts, 10000000 runs through Dhrystone Execution ends
Final values of the variables used in the benchmark:
Int_Glob: 5 should be: 5 Bool_Glob: 1 should be: 1 Ch_1_Glob: A should be: A Ch_2_Glob: B should be: B Arr_1_Glob[8]: 7 should be: 7 Arr_2_Glob[8][7]: 10000010 should be: Number_Of_Runs + 10 Ptr_Glob-> Ptr_Comp: 933177280 should be: (implementation-dependent) Discr: 0 should be: 0 Enum_Comp: 2 should be: 2 Int_Comp: 17 should be: 17 Str_Comp: DHRYSTONE PROGRAM, SOME STRING should be: DHRYSTONE PROGRAM, SOME STRING Next_Ptr_Glob-> Ptr_Comp: 933177280 should be: (implementation-dependent), same as above Discr: 0 should be: 0 Enum_Comp: 1 should be: 1 Int_Comp: 18 should be: 18 Str_Comp: DHRYSTONE PROGRAM, SOME STRING should be: DHRYSTONE PROGRAM, SOME STRING Int_1_Loc: 5 should be: 5 Int_2_Loc: 13 should be: 13 Int_3_Loc: 7 should be: 7 Enum_Loc: 1 should be: 1 Str_1_Loc: DHRYSTONE PROGRAM, 1'ST STRING should be: DHRYSTONE PROGRAM, 1'ST STRING Str_2_Loc: DHRYSTONE PROGRAM, 2'ND STRING should be: DHRYSTONE PROGRAM, 2'ND STRING
Microseconds for one run through Dhrystone: 0.8 Dhrystones per Second: 1241310.8 DMIPS: 706.49
Rolled Double Precision Linpack Benchmark - PC Version in 'C/C++'
Times are reported for matrices of order 100 1 pass times for array with leading dimension of 201
dgefa dgesl total Mflops unit ratio 0.07600 0.00200 0.07800 8.80 0.2272 1.3929
Calculating matgen overhead 100 times 0.43 seconds 200 times 0.85 seconds 400 times 1.70 seconds 800 times 3.41 seconds 1600 times 6.81 seconds Overhead for 1 matgen 0.00426 seconds
Calculating matgen/dgefa passes for 5 seconds 100 times 8.05 seconds Passes used 62
Times for array with leading dimension of 201
dgefa dgesl total Mflops unit ratio 0.07621 0.00231 0.07852 8.75 0.2287 1.4021 0.07621 0.00231 0.07852 8.75 0.2287 1.4021 0.07621 0.00231 0.07852 8.75 0.2287 1.4021 0.07621 0.00231 0.07852 8.75 0.2287 1.4021 0.07621 0.00231 0.07852 8.75 0.2287 1.4021 Average 8.75
Calculating matgen2 overhead Overhead for 1 matgen 0.00426 seconds
Times for array with leading dimension of 200
dgefa dgesl total Mflops unit ratio 0.07626 0.00231 0.07857 8.74 0.2288 1.4030 0.07626 0.00231 0.07857 8.74 0.2288 1.4030 0.07626 0.00231 0.07857 8.74 0.2288 1.4030 0.07626 0.00231 0.07857 8.74 0.2288 1.4030 0.07626 0.00231 0.07857 8.74 0.2288 1.4030 Average 8.74
Rolled Double Precision 8.74 Mflops
2K performance run parameters for coremark. CoreMark Size : 666 Total ticks : 16427 Total time (secs): 16.427000 Iterations/Sec : 1400.133926 Iterations : 23000 Compiler version : GCC10.3.0 Compiler flags : -O2 Memory location : STACK seedcrc : 0xe9f5 [0]crclist : 0xe714 [0]crcmatrix : 0x1fd7 [0]crcstate : 0x8e3a [0]crcfinal : 0xd340 Correct operation validated. See README.md for run and reporting rules. CoreMark 1.0 : 1400.133926 / GCC10.3.0 -O2 / STACK