上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 76 下一页
摘要: arm-elf-gcc -o test_e test.c -elf2fltBFLT executable - version 4 ramelf[exective linked file]: 一种为Linux系统所采用的通用文件格式,支持动态链接和重定位。 flat:扁平格式。elf文件有很大的头文件,flat格式对文件头和一些段信息做了简化,可执行程序小,适于嵌入式系统。elf2flt就是将elf格式转换为flt格式。arm-linux-gcc -o test_l test.cELF 32-bit LSB executable, ARM, version 1, dynamically link 阅读全文
posted @ 2012-08-22 22:43 ahuo 阅读(790) 评论(0) 推荐(0) 编辑
摘要: indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 阅读全文
posted @ 2012-08-22 16:58 ahuo 阅读(173) 评论(0) 推荐(0) 编辑
摘要: :helphelptags:helptaglist.txt使用下面的命令生成帮助标签:helptags~/.vim/doc下面介绍常用的taglist配置选项,你可以根据自己的习惯进行配置:- Tlist_Ctags_Cmd选项用于指定你的Exuberant ctags程序的位置,如果它没在你PATH变量所定义的路径中,需要使用此选项设置一下;-如果你不想同时显示多个文件中的tag,设置Tlist_Show_One_File为1。缺省为显示多个文件中的tag;-设置Tlist_Sort_Type为”name”可以使taglist以tag名字进行排序,缺省是按tag在文件中出现的顺序进行排序。按 阅读全文
posted @ 2012-08-22 11:48 ahuo 阅读(441) 评论(1) 推荐(0) 编辑
摘要: gdb是個命令列模式的交談(interactive)除錯器, 跟telnet或其它的unix交談式程式一樣有個提示符號,然後要下命令 (gdb)COMMAND 不要忘了gcc編譯時要加 -g 參數, 基本gdb命令 檔案處理 ======== file a.out 載入可執行檔a.out path 告訴gdb obj code在那 directory 告訴gdb source code在那裡 SHELL ===== shell ls 就會執行ls了 cd xxx 不過用shell的方法跟Makefile一樣... 阅读全文
posted @ 2012-08-20 10:54 ahuo 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 设置时间为下午14点36分。# date -s 14:36:00Fri Nov 26 14:15:00 CST 1999设置时间为2012年11月28号。# date -s 20121128加8小时# date -s "8 hours" 阅读全文
posted @ 2012-08-20 10:03 ahuo 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1. 安装ntpdate工具 # sudo apt-get install ntpdate 2. 设置系统时间与网络时间同步 # ntpdate cn.pool.ntp.org 阅读全文
posted @ 2012-08-19 20:59 ahuo 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 编译uClinux 按下面步骤对uClinux源码包进行编译: make dep ……………………建立依赖关系 make clean……………………清除旧的编译结果 make lib_only………………编译库 make user_only………………编译用户程序 make romfs……………………产生romfs make image……………………产生映象文件 make………………………………编译内核 (替换romsf中的文件,需要 make image,make) 按常规编译完成后应该生成image.bin linux linux.data l... 阅读全文
posted @ 2012-08-19 17:53 ahuo 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: #include <unistd.h> int getopt(int argc, char * const argv[],const char *optstring); extern char *optarg; extern int optind, opterr, optopt;getopt()所设置的全局变量包括:char *optarg——当前选项参数字串(如果有)。int optind——argv的当前索引值。当getopt()在while循环中使用时,循环结束后,剩下的字串视为操作数,在argv[optind]至argv[argc-1]中可以找到。int opterr... 阅读全文
posted @ 2012-08-17 17:08 ahuo 阅读(202) 评论(0) 推荐(0) 编辑
摘要: gconftool-2 --set --type=list --list-type=string /apps/gedit-2/preferences/encodings/auto_detected "[UTF-8,CURRENT,GB18030,BIG5-HKSCS,UTF-16]" 阅读全文
posted @ 2012-08-16 17:19 ahuo 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Bash Shell 快捷键l <CTRL k>:删除从光标到行尾的部分l <CTRL u>:删除从光标到行首的部分l <ALT d>:删除从光标到当前单词结尾的部分l <CTRL w>:删除从光标到当前单词开头的部分l <CTRL a>:将光标移到行首l <CTRL e>:将光标移到行尾l <ALT a>:将光标移到当前单词头部l <ALT e>:将光标移到当前单词尾部l <CTRL y>:插入最近删除的单词l <!$>:重复前一个命令最后的参数。Ctrl + a - 跳到 阅读全文
posted @ 2012-08-16 11:43 ahuo 阅读(3171) 评论(0) 推荐(0) 编辑
摘要: 'b' - Will immediately reboot the system without syncing or unmounting your disks.'c' - Will perform a system crash by a NULL pointer dereference. A crashdump will be taken if configured.'d' - Shows all locks that are held.'e' - Send a SIGTERM to all processes, except 阅读全文
posted @ 2012-08-15 15:02 ahuo 阅读(284) 评论(0) 推荐(0) 编辑
摘要: readelf -s vmlinux |grep FILE 76: 00000000 0 FILE LOCAL DEFAULT ABS process_32.c 80: 00000000 0 FILE LOCAL DEFAULT ABS signal.c 119: 00000000 0 FILE LOCAL DEFAULT ABS traps.c 129: 00000000 0 FILE LOCAL DEFAULT ABS irq.c 136: 00000000 0 FILE LOCAL DEFAULT ABS irq_32.c 147: 00000000 ... 阅读全文
posted @ 2012-08-15 10:19 ahuo 阅读(509) 评论(0) 推荐(0) 编辑
摘要: kgtp使用总结1,介绍:Kgtp项目主页是:http://code.google.com/p/kgtp/如其项目主页所描述,Kgtp是一个实时且轻量级的Linux跟踪内核调试工具。也许说是一个内核跟踪调试接口更合适,通过它来连通内核和GDB,使得GDB可以对内核进行跟踪调试。GDB既可以是在本机,也可以在另外一台机器上,甚至还可以进行离线调试,而这些感觉应该都是GDB本身提供的Targets、Trace Files等功能,而Kgtp主要还是进行内核调试信息的收集与交互、导出等,当然,Kgtp可能也会提供一些其它辅助GDB的功能。Kgtp目前支持X86-32,X86-64,MIPS和ARM平台 阅读全文
posted @ 2012-08-10 17:12 ahuo 阅读(2832) 评论(0) 推荐(0) 编辑
摘要: #include<stdlib.h>#include<stdio.h>#include<string.h>intmain(intargc,char*argv[]){intnum=0;if(argc!=2){printf("usage:%sn\n",argv[0]);return0;}num=atoi(argv[1]);printf("Error#%d:%s\n",num,strerror(num));return0;} 阅读全文
posted @ 2012-08-09 15:43 ahuo 阅读(194) 评论(0) 推荐(0) 编辑
摘要: /bin = BINaries/dev = DEVices/etc = ETCetera/lib = LIBrary/proc = PROCesses/sbin = Superuser BINaries/tmp = TeMPorary/usr = Unix Shared Resources/var = VARiable ?FIFO = First In, First OutGRUB = GRand Unified BootloaderIFS = Internal Field SeperatorsLILO = LInux LOaderMySQL = My是最初作者女儿的名字,SQL = Stru 阅读全文
posted @ 2012-08-08 18:23 ahuo 阅读(323) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 76 下一页