
C
z278718149
目前在做编译器工具链。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C 函数指针 与函数指针数组
转载的:https://blog.youkuaiyun.com/dmc111qwf/article/details/80200868 #include <stdio.h> #include <string.h> typedef void (*poniter_fun)(int); //定义一个函数指针 typedef struct...转载 2019-01-14 10:21:17 · 491 阅读 · 1 评论 -
C 地址函数指针 结构体数组 初始化
#include <stdio.h>#include <math.h>#define PI 3.14159265static void math_test_acos(){ double x,ret,val; x=0.9; val=180.0/PI; ret=acos(x) * val; printf("%f 的反余弦是 %...原创 2019-01-14 10:34:38 · 450 阅读 · 0 评论 -
configure: error: cannot guess build type; you must specify one解决方法
不能匹配到我的机器类型,需要手动指定一下,在后面添加" --build=i686-pc-linux "原创 2019-01-14 15:35:29 · 2811 阅读 · 0 评论 -
妨碍优化的因素
今天在看《深入理解计算机系统》时看到了性能优化,认识到了之前从未考虑过的问题。妨碍优化的因素:1.计算依赖的指针p和q 是否指向存储器中同一个位置2.函数调用举例说明:1)void twiddle1(int *xp,int *yp){ *xp+=*yp; *xp+=*yp;}void twiddle2(int *xp,int *yp){ *xp+= 2 * *...转载 2019-03-26 13:38:38 · 362 阅读 · 0 评论