随笔分类 -  other

摘要:http://www.cabletv.com/the-walking-dead 阅读全文
posted @ 2014-06-15 13:53 xxx1 阅读(253) 评论(0) 推荐(0)
摘要:使用 Visual Studio 分析器找出应用程序瓶颈Hari PulapakaandBoris Vidolov本文讨论:以性能瓶颈为目标应用程序代码分析比较分析数据性能报告本文使用了以下技术:Visual Studio 2008在过去十年间,涌现了许多新的软件技术和平台。每种新技术都要求掌握专门... 阅读全文
posted @ 2014-06-07 00:56 xxx1 阅读(1969) 评论(0) 推荐(0)
摘要:x86段寄存器介绍: 指针寄存器: 通用寄存器 变址寄存器 阅读全文
posted @ 2013-06-08 23:48 xxx1 阅读(534) 评论(0) 推荐(0)
摘要:#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 % ... 阅读全文
posted @ 2013-06-08 00:08 xxx1 阅读(151) 评论(0) 推荐(0)
摘要:#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... 阅读全文
posted @ 2013-06-08 00:07 xxx1 阅读(255) 评论(0) 推荐(0)
摘要:虽然现在计算机的运算速度不断提高, 但大型软件的编译速度仍然是个漫长的过程,我所在的项目, 软件大小约为200K行, 在VC6下的编译时间为3分钟(P4 1.8G, 512M), 在交叉编译时更慢, 提高编译速度将能够直接提高前期调测的效率. 本文将介绍提高编译速度的有效方法之一 - 分布式编译. 分布式编译的原理很简单, 就是将编译的整个工作量通过分布计算的方法分配到多个计算机上执行... 阅读全文
posted @ 2013-06-03 17:54 xxx1 阅读(17488) 评论(0) 推荐(0)
摘要:http://tweetflight.wearebrightly.com/ 阅读全文
posted @ 2013-06-03 17:25 xxx1 阅读(247) 评论(0) 推荐(0)
摘要:#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 阅读全文
posted @ 2012-01-29 14:32 xxx1 阅读(176) 评论(0) 推荐(0)
摘要: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; } 阅读全文
posted @ 2012-01-19 16:13 xxx1 阅读(127) 评论(0) 推荐(0)