摘要: 前言 最近接了个任务,需要把代码移植到armv7平台,搜寻相关方法,了解到可以利用交叉编译工具如:gcc-linaro-arm-linux-gnueabihf。把自己依赖的第三方库代码和自己代码分别编译就好。后来公司买了个树莓派,我直接在树莓派上编代码了,过程中没有很大的问题,记录下。 1.确定第三 阅读全文
posted @ 2019-07-05 17:11 _hao 阅读(4593) 评论(0) 推荐(0)
摘要: 性能分析工具小试 1. perf sudo yum install perf* 注:这个也可以用源码安装,比如我系统目录:/usr/src/kernels/3.10.0-862.el7.x86_64/tools/perf 这里边直接带有perf 首先编译debug版程序,比如编译了test程序,然后 阅读全文
posted @ 2019-06-28 19:59 _hao 阅读(408) 评论(0) 推荐(0)
摘要: 最近做的题记录下。 258. Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num 阅读全文
posted @ 2016-11-06 11:38 _hao 阅读(177) 评论(0) 推荐(0)
摘要: 下面是今天写的几道题: 292. Nim Game You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take t 阅读全文
posted @ 2016-08-27 21:38 _hao 阅读(380) 评论(0) 推荐(0)