优化x264
编译x264测试文件
gcc demo.c -o demo -L /usr/local/x264_86/lib -lx264
1
1
使用QEMU执行
/home/jiaolong/riscvv/qemu-7.1.0/build/riscv64-linux-user/qemu-riscv64 -cpu rv64,v=true,vlen=256,vext_spec=v1.0 -L $RISCV/sysroot /home/jiaolong/x264/x264-master/demo
1
1
/home/jiaolong/riscvv/qemu-7.1.0/build/riscv64-linux-user/qemu-riscv64 -cpu rv64,v=true,vlen=256,vext_spec=v1.0 -L $RISCV/sysroot /home/jiaolong/riscvv/test/rvv_vadd
1
1
计算程序执行指令数的函数实现
begin_instret = __get_rv_instret();
begin_cycle = __get_rv_cycle();
normal_case(array);
end_instret = __get_rv_instret();
end_cycle = __get_rv_cycle();
instret_normal = end_instret - begin instret;
cycle_normal = end_cycle - begin_cycle;
1
2
3
4
5
6
7
2
3
4
5
6
7
1
2
3
4
5
6
7
2
3
4
5
6
7
Last updated: 2022/12/04, 13:58:10