
programming
文章平均质量分 66
world_hello_100
这个作者很懒,什么都没留下…
展开
-
-W -Wall
-W is now deprecated by -Wextra with new gcc versions.From gcc man page: -Wextra This enables some extra warning flags that are not enabled by -Wall. (This option used to be called转载 2016-07-07 13:06:31 · 373 阅读 · 0 评论 -
C语言函数参数传递之痛
YUAN1125的专栏目录视图摘要视图订阅“程序人生”中国软件开发者职业生涯调查 优快云社区“三八节”特别活动 开发者职业生涯调查之未来C语言函数参数传递之痛分类: C语言编程 2011-05-11 20:41 716人阅读 评论(0)收藏 举报c语言bytefileflo转载 2014-03-08 18:33:50 · 664 阅读 · 0 评论 -
汇编中函数返回结构体的方法
汇编中函数返回结构体的方法代码生成,函数的返回值是个问题,如果返回值是简单类型,如int, char等,一个字节可以容纳,那编译器的做法是将值直接存在eax寄存器中.代码为证c代码:#include int add(int a, int b){ returna + b;} int main(){转载 2014-03-08 19:31:27 · 1633 阅读 · 0 评论 -
X86&64 calling convention
X86&64 calling convention 2012-04-07 15:00:58| 分类: x86/64 Assembly |举报 |字号 订阅1. 汇编函数参数传递方式a. x86:__stdcall,_cdecl,__fastcall1、__stdcall调用约定相当于16位动态库中经常使用的PASCAL调用约定。在32位的VC++5.0中PA转载 2014-03-08 18:49:00 · 1495 阅读 · 0 评论 -
C# Regular Expressions Cheat Sheet
C# Regular Expressions Cheat Sheet Cheat sheet for C# regular expressions metacharacters, operators, quantifiers etc CharacterDescription\ Marks the next character as e转载 2014-01-09 14:13:38 · 1613 阅读 · 0 评论 -
Linux程序设计——用getopt处理命令行参数
Linux程序设计——用getopt处理命令行参数Linux下很多程序甚至那些具有图形用户界面(graphical userinterface,GUI)的程序,都能接受和处理命令行选项。对于某些程序,这是与用户进行交互的主要手段。具有可靠的复杂命令行参数处理机制,会使得您的应用程序更好、更有用。getopt()是一个专门设计来减轻命令行处理负担的库函数。1、命令行参数命令行程序设计转载 2014-02-17 14:41:30 · 569 阅读 · 0 评论 -
Writing binary files with bash
Writing binary files with bashHello,I'm trying to see if I'm able to write some binary file using bash. So, when writing a binary file you often want to write a number into binary format. I ende转载 2014-02-24 16:09:25 · 1506 阅读 · 0 评论 -
【键盘的构造及历史】
键盘的扫描码Scan Code,通码Make code,断码Break Code2013-03-11 16:55:46分类: 云计算http://bbs.chinaunix.net/thread-3609756-1-1.html【键盘的构造及历史】对于键盘,如果想要表示某个按键,硬件上对应着某个点,有两种方法,一种是对于每个按键,都设计一个硬件的点,另外一种转载 2014-02-04 17:20:36 · 2189 阅读 · 0 评论 -
.2 HOST主桥(2)
2.2 HOST主桥(2)发布时间:2013-03-28 10:11:54技术类别:接口电路 个人分类:浅谈PCIe体系结构 3 使用Outbound寄存器访问PCI总线地址空间MPC8548处理器使用Outbound寄存器组访问PCI总线地址空间的步骤如下。(1) 首先MPC8548处理器需要将程序使用的转载 2014-01-29 08:39:47 · 1482 阅读 · 1 评论 -
Ctl-H "Rubout"
Hello Jean,I am quoting following from bash scripting guide by Mendel Cooper -TLDPCtl-H"Rubout" (destructive backspace). Erases characters the cursor backsover while backspacing.What转载 2014-01-16 21:08:15 · 776 阅读 · 0 评论 -
Understanding TCP/IP Network Stack & Writing Network Apps
http://www.cubrid.org/blog/categories/dev-platform/Open Source RDBMS - Seamless, Scalable, Stable and Free한국어 |Login |RegisterAboutDownloadsDocumentationDev ZoneCommunity转载 2014-01-21 13:26:38 · 2017 阅读 · 0 评论 -
浅谈TCP/IP网络编程中socket的行为
成长的足迹关注Linux下C/C++后端开发技术浅谈TCP/IP网络编程中socket的行为我认为,想要熟练掌握Linux下的TCP/IP网络编程,至少有三个层面的知识需要熟悉:1. TCP/IP协议(如连接的建立和终止、重传和确认、滑动窗口和拥塞控制等等)2. Socket I/O系统调用(重点如read/write),这是TCP/IP协议在应用层表现出来的行为。转载 2014-01-21 12:39:01 · 4916 阅读 · 0 评论 -
A FIFO (First In First Out)
A FIFO (First In First Out) is a type of buffer, where the first byte to arrive is the first to leave.BrainBoxes Serial Devices all have Hardware FIFOs. FIFOs reduce the chances of data loss by 'b转载 2013-12-26 17:39:30 · 786 阅读 · 0 评论 -
通过文件名查找法
通过文件名查找法: 这个方法说起来就和在WINDOWS下查找文件一样容易理解了。如果你把这个文件放在单个的文件夹里面,只要使用常见的“ls"命令就能方便的查找出来,那么使用“find”命令来查找它就不能给你留下深刻的印象,毕竟“find”命令的强大功能不止这个。如果知道了某个文件的文件名,而不知道这个文件放到哪个文件夹,甚至是层层套嵌的文件夹里。举例说明,假设你忘记了httpd.conf转载 2014-01-09 21:32:45 · 1326 阅读 · 0 评论 -
常用awk命令(转)
常用awk命令(转)awk 用法:awk ' pattern {action} ' 变量名 含义ARGC 命令行变元个数ARGV 命令行变元数组FILENAME 当前输入文件名FNR 当前文件中的记录号FS 输入域分隔符,默认为一个空格RS 输入记录分隔符NF 当前记录里域个数NR 到目前为止记录数OFS 输出域分隔符ORS 输出记录分隔符转载 2014-01-09 18:20:37 · 550 阅读 · 0 评论 -
awk用法小结
[保留] awk用法小结(作者总结)http://www.chinaunix.net 作者:ruifox 发表于:2007-08-01 11:49:42【发表评论】【查看原文】【Shell讨论区】【关闭】awk 用法:awk ' pattern {action} ' 变量名 含义ARGC 命令行变元个数转载 2014-01-08 17:08:39 · 554 阅读 · 0 评论 -
"s" is a "sticky bit"
The "s" is a "sticky bit" which sets that property for all subsequently created subdirs and/or files. Depending on where the "s" is dictates if it's "suid" or "sgid"'man chmod' will give more info转载 2014-04-14 14:16:22 · 786 阅读 · 0 评论 -
How to develop your own Boot Loader
10,875,095 members (71,346 online)Sign in homearticlesChapters and Sections>SearchLatest ArticlesLatest Tips/TricksTop Article转载 2014-09-19 10:22:02 · 1055 阅读 · 0 评论 -
about modern operating system lecture
3.5.3 Page sizePage size must be a multiple of the disk block size. Why?Answer: When copying out a page if you have a partial disk block, you must do a read/modify/write (i.e., 2 I/Os).Character转载 2016-05-27 15:31:10 · 841 阅读 · 0 评论 -
DBCS
DBCS故名思义就是用两个byte表示一个字符,是对各种采用两个byte表示一个字符(好像哪里重复了)的内码方案的一个统称。首先要明确的是先有各种双字节编码方案后有DBCS这个(概括性的)名字,DBCS并没有统一的规范,不存在通行的标准。只是早年使用DBCS的各国为了达到类似的目的,最后搞出来的方案大都类似而已。前提:早年的ASCII只定义了128个字符(可打印的96个),剩下最高转载 2016-03-10 22:05:51 · 962 阅读 · 0 评论 -
"railroad diagram"
1 down vote acceptedAs a "railroad diagram", this has some properties in common with a railroad track.Upon entering the diagram from the left, when arriving at the first switch, there is转载 2016-02-25 16:12:36 · 934 阅读 · 0 评论 -
Linux and the Device Tree
Linux and the Device Tree-------------------------The Linux usage model for device tree dataAuthor: Grant Likely This article describes how Linux uses the device tree. An overview ofthe device tree da转载 2015-12-04 16:23:39 · 554 阅读 · 0 评论 -
关于UART的CTS/RTS
http://luleimi.blog.163.com/blog/static/175219645201312005345914/关于UART的CTS/RTS 2013-02-20 13:15:15| 分类:UBoot | 标签:uart cts rts |举报|字号 订阅转载 2015-06-19 17:36:39 · 6587 阅读 · 0 评论 -
交换机端口untaged、taged、trunk、access 的区别
交换机端口untaged、taged、trunk、access 的区别2010-08-24 22:17:49分类: 系统运维http://blog.chinaunix.net/uid-12427199-id-169985.html来源 :网络首先,将交换机的类型进行划分,交换机分为低端(SOHO级)和高端(企业级)。其两者的重要区别就是低端的交换机,每一个物理端转载 2015-05-14 11:47:06 · 1219 阅读 · 0 评论 -
Avoiding LD_LIBRARY_PATH: The Option
Avoiding LD_LIBRARY_PATH: The Options By Ali Bahrami on Nov 02, 2007With the introduction of the elfedit utility into Solaris, wehave a new answer to the age old question of how to avoideveryone转载 2015-04-13 14:22:06 · 541 阅读 · 0 评论 -
GUN ARM汇编中标号的引用在汇编和C语言中区别
GUN ARM汇编中标号的引用在汇编和C语言中区别分类:ARM C语言2010-05-07 09:27211人阅读评论(0)收藏举报u-boot/cpu/xx/start.S中:_TEXT_BASE: .word TEXT_BASE /*uboot映像在SDRAM中的重定位地址,我设置为0xa170 0000 */.globl _armboo转载 2015-04-13 15:16:05 · 1153 阅读 · 0 评论 -
Keeping IT Pure
Keeping IT PureBy E. Eugene SchultzEvery aspect of an information system--from the networkinfrastructure down to bit sequences in data files--requires protectionfrom unauthorized changes. Providin转载 2015-04-10 17:45:34 · 591 阅读 · 0 评论 -
There are both historical and practical reasons why there is no ^^ operator.
http://c-faq.com/misc/xor.dmr.htmlBack in July of 1995,Adam Moscowitz posed this question to Dennis Ritchie:I teach C programming classes, and I'm often asked why C has a bitwiseexclusive-转载 2015-03-31 13:14:38 · 714 阅读 · 0 评论 -
parameter和argument的区别
parameter和argument的区别十一 30th, 2011 3,497 views | 发表评论 | Trackback在对一个函数写一个注释时,我在考虑到底该用parameter还是用argument来描述其参数呢。根据网上一些资料,对parameter和argument的区别,做如下的简单说明。1. parameter是指函数定义中参数,而转载 2014-12-02 14:14:11 · 649 阅读 · 0 评论 -
compiler vs interpreter
http://www.c4learn.com/c-programming/compiler-vs-interpreter/转载 2014-11-03 10:46:20 · 910 阅读 · 0 评论 -
sync kernel
spinlock:Therefore, the core rulethat applies to spinlocks is that any code must, while holding a spinlock, be atomic.It cannot sleep; in fact, it cannot relinquish the processor for any reason原创 2014-11-13 20:48:04 · 372 阅读 · 0 评论 -
chinese
例如,用户可以测试某个寄存器的值,但是直到下次使用同一条件进行测试时,才能有条件地执行这些指令测试寄存器的值,s转载 2014-09-24 14:52:23 · 511 阅读 · 0 评论 -
pci dma
hank you very much, Neal. This helped incredibly much. In a lot of the online resources everything is still referred to only as DMA so again apologies that I misunderstood something.I guess I cann转载 2014-08-23 19:02:19 · 974 阅读 · 0 评论 -
Take Command: Init
Take Command: Init(November 1998)Reprinted with permission of the Linux JournnalInit is the driving force that keeps our Linux box alive, and itis the one that can put it to death. This article转载 2013-12-31 10:45:31 · 983 阅读 · 0 评论 -
第9章 中断系统和中断控制器8259A
第9章 中断系统和中断控制器8259A转载 2013-12-27 16:33:07 · 790 阅读 · 0 评论 -
notes for mordern operating system
=====================================================================何谓空间冗余?JPEG压缩技术是通过分析每一帧的空间冗余而人手的,所谓空间冗余是指亮度和色度在其中没有任何变化的区域.通过降低核内的空间冗余(所谓的核内编码),JPEG标准获得了高达50:1的无任何图像质量下降的压缩比相关的像素所携带的信息中转载 2013-10-15 15:57:36 · 763 阅读 · 0 评论 -
关于fflush的深入理解
@求fflush(stdin)和fflush(stdout)用法 #includevoid main(){int a,b,c,d;fflush(stdin);scanf("%d%d%d",&a,&b,&c);if(a > b) d = a;else d = b;if(c > d) d = c;printf("%d/n",d);fflus转载 2012-10-13 10:39:28 · 742 阅读 · 0 评论 -
硬盘(U盘、移动硬盘)MBR、DBR简介
一、几个概念BIOS(Basic Input/Output System)基本输入输出系统,全称是ROM-BIOS,是只读存储器基本输入/输出系统的简写,它实际是一组被固化到电脑中,为电脑提供最低级最直接的硬件控制的程序。CMOS(Complementary Metal Oxide Semiconductor)本意是指互补金属氧化物半导体,一种大规模应用于集成电路芯片制造的转载 2012-10-13 11:03:07 · 2884 阅读 · 0 评论 -
硬盘物理结构和FAT文件结构分析(二)
4.2 关于保留扇区 在上述FAT文件系统DBR的偏移0x0E处,用2个字节存储保留扇区的数目。所谓保留扇区(有时候会叫系统扇区,隐藏扇区),是指从分区DBR扇区开始 的仅为系统所有的扇区,包括DBR扇区。在FAT16文件系统中,保留扇区的数据通常设置为1,即仅仅DBR扇区。而在FAT32中,保留扇区的数据通常 取为32,有时候用Partition Magic分过的FAT32分区会设转载 2012-10-13 11:01:56 · 1846 阅读 · 0 评论 -
基于嵌入式系统中的OS 启动加载程序
http://blog.youkuaiyun.com/againyuan/article/details/3431155Boot Loader 的主要任务与典型结构框架 在继续本节的讨论之前,首先我们做一个假定,那就是:假定内核映像与根文件系统映像都被加载到 RAM 中运行。之所以提出这样一个假设前提是因为,在嵌入式系统中内核映像与根文件系统映像也可以直接在 ROM 或 Flash 这样的固态存储设备转载 2012-10-13 10:43:39 · 437 阅读 · 0 评论