随笔分类 - other
摘要:http://www.cabletv.com/the-walking-dead
阅读全文
摘要:使用 Visual Studio 分析器找出应用程序瓶颈Hari PulapakaandBoris Vidolov本文讨论:以性能瓶颈为目标应用程序代码分析比较分析数据性能报告本文使用了以下技术:Visual Studio 2008在过去十年间,涌现了许多新的软件技术和平台。每种新技术都要求掌握专门...
阅读全文
摘要:x86段寄存器介绍: 指针寄存器: 通用寄存器 变址寄存器
阅读全文
摘要:#include <stdio.h>static unsigned long int next = 1;void my_srand(unsigned int seed){ next = seed;}int my_rand(void){ next = next * 1103515245 + 12345; return (unsigned int)next / 65536 % ...
阅读全文
摘要:#include <stdio.h>char *itobs(int, char *);void show_bstr(const char *);int main(void){ char bin_str[8 * sizeof(int) + 1]; int number; puts("Enter integers and see them in binary."); pu...
阅读全文
摘要:虽然现在计算机的运算速度不断提高, 但大型软件的编译速度仍然是个漫长的过程,我所在的项目, 软件大小约为200K行, 在VC6下的编译时间为3分钟(P4 1.8G, 512M), 在交叉编译时更慢, 提高编译速度将能够直接提高前期调测的效率. 本文将介绍提高编译速度的有效方法之一 - 分布式编译. 分布式编译的原理很简单, 就是将编译的整个工作量通过分布计算的方法分配到多个计算机上执行...
阅读全文
摘要:http://tweetflight.wearebrightly.com/
阅读全文
摘要:#include <stdio.h> void swap(int *x, int *y)
{ *y = *x ^ *y; *x = *x ^ *y; *y = *x ^ *y;
} void revert(int *a, int len)
{ int first = 0, last = len - 1; for (;first < last; first++, last--) swap(&a[first], &a[last]);
} int main()
{ int i, a[] = {1 ,2, 3, 4, 5}; revert(a, 5); for (i
阅读全文
摘要:int binary(int array[], int n, int k)
{ int l = -1; int r = n; while (l+1 != r) { int i = (l+r)/2; if (k < array[i]) r = i; if (k = array[i]) return i; if (k > array[i]) l = i; } return n;
}
阅读全文

浙公网安备 33010602011771号