- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 gcc 与 汇编
gcc 只支持AT&T格式的汇编。AT&T 386 汇编与intel格式的差异:在intel格式中大多使用大写字母,而在AT&T格式中都使用小写字母在AT&T格式中,寄存器名要加上%号作为前缀,而在intel格式中则不带前缀在AT&T的386汇编语言中,指令的源操作数与目标操作数的顺序与在intel的386汇编语言中正好相反, 在intel格式中是目标在前,源在后,而在AT&T格式中则是源
2005-12-22 13:01:00 2267 1
原创 shell I/O
shell I/Ocommand 2> file重定向标准错误到file文件command >& 2 (>&后跟文件描述符)重定向标准输出到标准错误exec 重定向标准输入到file文件exec 2>file重定向标准错误到file注意:exec对整个shell程序重定向有效>&- :关闭标准输出inline 输入重定向:command shell 用words 后面的语句作为输入,当碰到有
2005-12-16 18:37:00 898
原创 shell 参数取代方法
所有示例代码都在freebsd 5.4下通过一:参数取代方法1:${parameter:-value}如果parameter不为空则取代parameter的值,否则用取代value的值例:echo Using editor ${EDITOR:-/bin/vi}if [ -n "$EDITOR" ]then EDITOR=$EDITORelse EDITOR=/bin
2005-12-15 01:12:00 933
java concurrency in practice.chm
2009-01-10
Domain-Driven Design: Tackling Complexity in the Heart of Software
2008-11-13
C99 standard
2008-10-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人