ppc_85xx-gcc -shared -fPIC liberr.c -o liberr.so-fPIC 作用于编译阶段,告诉编译器产生与位置无关代码(Position-Independent Code),则产生的代码中,没有绝对地址,全部使用相对地址,故而代码可以被加载器加载到内存的任意位置,都...
分类:
其他好文 时间:
2015-03-21 18:35:56
阅读次数:
286
// ## : 连接字符串和参数#define singleton_h(name) + (instancetype)shared##name;#if __has_feature(obj_arc)//ARC#define singleton_m(name) \static id _instance; ...
分类:
其他好文 时间:
2015-03-21 01:03:00
阅读次数:
229
CUDA中使用shared_memory可以加速运算,在矩阵乘法中是一个体现。矩阵C = A * B,正常运算时我们运用 C[i,j] = A[i,:] * B[:,j] 可以计算出结果。但是在CPU上完成这个运算我们需要大量的时间,设A[m,n],B[n,k],那么C矩阵为m*k,总体,我们需要做...
分类:
其他好文 时间:
2015-03-20 23:27:59
阅读次数:
343
相关概念CHUNK: Shared pool物理层面上由许多内存块组成,这些内在块称为chunk。但是chunk是大小不一的,在内存中一个chunk是连续的。EXTENT:由多个连续的chunk组成HEAP: 堆由一个或多个大小不一的extent组成将shool pool内存dump出来将shool...
分类:
其他好文 时间:
2015-03-20 17:53:34
阅读次数:
147
In the previous example we used explicit locking with mutexes to synchronize access to shared state across multiple goroutines. Another option is to u...
分类:
其他好文 时间:
2015-03-20 16:06:28
阅读次数:
181
一、 http://www.cnblogs.com/welkinwalker/archive/2011/10/20/2218804.html二、http://www.cnblogs.com/TianFang/archive/2008/09/19/1294521.html三、http://blog.s...
分类:
编程语言 时间:
2015-03-20 15:55:01
阅读次数:
152
# Local per-repo rules can be added to the .git/info/exclude file in your # repo. These rules are not committed with the repo so they are not shared # with others. This method can be used for local...
分类:
其他好文 时间:
2015-03-20 11:12:29
阅读次数:
150
前面讲到auto_ptr有个很大的缺陷就是所有权的转移,就是一个对象的内存块只能被一个智能指针对象所拥有.但我们有些时候希望共用那个内存块.于是C++ 11标准中有了shared_ptr这样的智能指针,顾名思义,有个shared表明共享嘛.所以shared_ptr类型的智能指针可以做为STL容器的元...
分类:
其他好文 时间:
2015-03-20 10:37:09
阅读次数:
242
Raspberry Pi (BCM2835): Device Information Architecture ARMv6 CPU ARM11 RAM 256MB OR 512MB since October 2012 (shared with?GPU) GPU VideoCore IV OpenGL OpenGL ES 2.0 Multimedia OpenMax IL 1.1.2 Qt...
分类:
Web程序 时间:
2015-03-20 07:01:51
阅读次数:
1569