- 博客(12)
- 资源 (34)
- 收藏
- 关注
转载 cygwin编译的win32程序不需要cygwin1.dll库的方法
以下文章翻译自国外网站http://digipen2.xmmg.com/dpweb/docs/mno-cygwin.html简单的代码view plain#include int main(void) { printf("Hello\n"); return 0; } 编译链接如下:
2012-07-29 21:37:46 5243
转载 Visual C++编译环境免安装命令行版
VC的IDE开发环境很好,但太大了,经常是2005/2008/2010装一大堆,占用几十G的空间。用惯了Linux的命令行方式,觉得小巧精致。于是想把VC的基本命令提取出来,也做一个绿色版本。保留基本的编译命令,cl、lib、link、ml之类的。编译工程只能用nmake了。vcproj工程文件怎么办?用scons重写一个吧。(其实命令行也有个vcbuild)。制作绿色版之前,首先要安装一
2012-07-27 13:31:33 3537
转载 在 console mode 中使用 C/C++ 编译器
在 console mode 中使用 C/C++ 编译器侯捷 1999.04.08我总是鼓励 C/C++ 的学习者,在刚接触这个程式语言的时候,先以 console mode(DOS-like)程式为目标。换言之,不要一开始就想写 GUI 程式、想开视窗、想有眩目亮丽的画面 -- 那只是未走先飞,揠苗助长罢了。所谓 console 程式,就是文字模式的程式,我们可以
2012-07-27 11:02:34 1502
转载 编译Windows版Android Emulator(Cupcake)
Android SDK提供了一个基于Qemu的模拟器来模拟Android系统的智能手机,得益于Qemu的跨平台特性,不论是Linux、Mac OS还是Windows的用户都可以通过模拟器大大提高开发效率。不过归根结底,Qemu还是在类Unix平台上发展起来的项目,所以在Windows平台上的编译还是值得一看。Google在git上描述如何编译Android Eclipse插件ADT的时候顺带提到了
2012-07-26 14:49:49 2202
原创 手动插int 3实现程序主动断点
gdb的条件断点可以让程序在满足一定条件时停下break ... if cond但有时程序逻辑复杂无比,或者条件复杂无比,让gdb的被动断点很难设。这时可以在程序中加中断语句来进行主动的中断。毕竟大多调试器也是靠在断点处插异常指令实现的,原理一样。 例:test.c#include #include int main(){ printf("hell
2012-07-26 08:14:34 2423
原创 Git常见使用
原文地址:http://blog.csdn.net/ariesjzj/article/details/7747876Git和SVN,CVS一样,是一种源代码管理系统。和后两者不同的是,它不仅可以集中式管理,也可以以分布式的形式工作,即所有操作都在本地,速度快,且本地提交不会影响共享的代码仓库。Git功能很多,本文列了一些常见用法。配置和创建代码仓库设置提交时的编辑器(默认是nano):
2012-07-15 00:02:54 19148 1
翻译 Android下的图形渲染配置文件egl.cfg
Android中的EGL/GLES库不是在运行时直接链接的,而是在第一次使用时根据配置选择性载入的。更具体的,libEGL.so文件包含了一个“载入器”,它会尝试载入硬件图形库或是软件图形库(libagl)。载入器的源代码位于:frameworks/base/openl/libs/EGL/Loader.cpp。载入什么库取决于配置文件/system/lib/egl/egl.cfg,egl.cfg有
2012-07-09 15:37:10 9301 1
原创 Linux下二进制代码的阅读
大多数时候,我们研究的是如何阅读源代码。但在一些情况下,比如源代码不公开或得到源代码的代价很高的情况下,我们又不得不需要了解程序的行为,这时阅读二进制文件就非常重要。假设现在有一个二进制可执行文件,我们木有源代码,但要了解它的实现,这里仅简单列出一些常用的工具。 阅读方式可分为两个方面:静态阅读和动态阅读。静态阅读首先,file命令可以查看可执行文件的大体信息。比如是哪种格式的,哪个体
2012-07-08 14:00:44 3434
原创 GDB使用备忘
调试带参数的程序$ gdb program(gdb) run param 使用core dump调试首先打开core dumpulimit -c unlimitedcore文件产生后,使用core dumpgdb --core=core.XXX 设置watch point(gdb) watch *((int*)0x00ABCDEF)查看反汇
2012-07-08 01:37:32 3135
转载 GDB中应该知道的几个调试方法
七、八年前写过一篇《用GDB调试程序》,于是,从那以后,很多朋友在MSN上以及给我发邮件询问我关于GDB的问题,一直到今天,还有人在问GDB的相关问题。这么多年来,有一些问题是大家反复在问的,一方面,我觉得我以前的文章可能没有说清楚,另一方面,我觉得大家常问的问题正是最有用的,所以,在这里罗列出来。希望大家补充。一、多线程调试多线程调试可能是问得最多的。其实,重要就是下面几个命令:
2012-07-08 01:23:24 1193
转载 windows bat
虽然windows中bat不如linux中shell强大,但是也是很好用的,看到了放这里 当字典用。-----批处理文件,在MS-DOS中,.bat文件是可执行文件,有一系列命令构成,其中可以包含对其他程序的调用。首先,批处理文件是一个文本文件,这个文件的每一行都是一条DOS命令(大部分时候就好像我们在DOS提示符下执行的命令行一样),你可以使用DOS下的Edit或者Windows
2012-07-04 18:18:42 1243
The.Art.of.Multiprocessor.Programming.Source.Code
2012-02-14
Windows Internals Fifth Edition
2011-01-28
Principles of Data Mining
2010-09-08
Understanding Search Engines: Mathematical Modeling and Text Retrieval
2010-09-08
Mining the Web-Discovering Knowledge from Hypertext Data
2010-09-08
Search Engines, Link Analysis, and User’s Web Behavior
2010-09-08
Professional Linux Kernel Architecture
2010-08-29
《Dynamic Programming and Optimal Control》 Vol 2
2010-07-05
《The nature of statistical learning theory》Vapnik V.N.
2009-10-25
《Elements of the Theory of Computation》
2009-10-02
《The Design of The Unix Operating System》(unix操作系统设计)
2009-10-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人