自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 LINUX编译系统(4)

5.  基本编译工具和编译选项5.1编译选项编译选项是另一个重要的控制手段。LINUX的编译选项第一级非常简单  cmd_as_o_S $(CC) $(a_flags) -c -o $@ $  cmd_as_s_S $(CPP) $(a_flags)   -o $@ $  cmd_cc_i_c $(CPP) $(c_flags)   -o $@ $  cmd_cc_lst_c $(CC

2008-10-10 14:24:00 1325

原创 LINUX编译系统(3)

4.增强编译工具4.1增强编译工具4.1.1 基本编译工具gcc binutils对于POWERPC系列:# Ensure this is binutils 2.12.1 (or 2.12.90.0.7) or later for altivec# instructions.# gcc-3.4 and binutils-2.14 are a fatal combinatio

2008-09-26 15:50:00 930

原创 LINUX编译系统(2)

3. 软件构造3.1 软件第一级构造 init-y  := init/ drivers-y := drivers/ sound/ net-y  := net/ libs-y  := lib/ core-y  := usr/core-y  += kernel/ mm/ fs/ ipc/ security/ crypto/ block/init-y  := $(patsubst %/, %

2008-09-24 15:09:00 2098

原创 LINUX 编译系统

经常需要移植代码,我觉得LINUX的编译系统是一个很好的组织源代码和实施软件编译的模板,BUSYBOX就采用了这个模板。因此我将通读LINUX makefile。对其进行改造,方便以后编写代码。Makefile 的使用HOST工具和软件配置设置软件依赖/构造描述增强的编译工具基本编译工具和编译选项改造后的Makefile每个段落都采用接口/实现来描述。 1.

2008-09-23 16:26:00 1822

原创 STL算法

STL算法由于有函数对象,而函数对象可以定义任何语义,所以这会带来对STL算法的特殊使用,例如 T accumulate (InputIterator beg. InputIterator end, T initValue, BinaryFunc op)其定义了 initValue op a1 op a2 op a3 op , 当op定义为+时,为求和,当op定义为-时,定义就不同了。在描述算法时

2008-09-08 17:17:00 565

原创 The GNU STL allocator 实现

计划中

2008-09-08 17:16:00 522

原创 Stream应用注意点

 1. Stream 的类层次2. Stream 的状态 (iostate) /IO 格式化flag (fmtflags) / 文件打开模式(openmode) / 文件定位标记 (seekdir) 。3. Stream 中failbit 和 badbit 的差别。failbit 用于读取时格式不符的情况。注意,在格式不符时,stream会跳过不符的输入并且不对变量进行更改。4. Stream 中

2008-09-08 17:16:00 428

原创 C++中使用<<operator 读取纪录行

在C++中,>>operator可以读取不同的基本类型,但是对于endl其不能识别,这会影响到如下文件的读取。#systat stream tcp nowait nobody /usr/sbin/tcpd /bin/ps -auwwxnetstat stream tcp nowait root /bin/netstat /bin/netstat -a#ident stream tcp nowait

2008-09-08 10:58:00 487

原创 STL 容器插入操作signature比较

c.insert(pos,elem)vector:returns the position of the new element deque:returns the position of the new element list:returns the position of the new element set/multiset:returns the position of t

2008-08-20 15:37:00 341

原创 引用和模板

引用在C++中主要用于函数参数传递。在template中有很有意义。#include #include #include using namespace std;// function that prints the passed argumentvoid print (int elem){    cout }void print1 (int &elem){//    cout     elem

2008-08-19 11:22:00 411

原创 Change To C++ Primer Version 4

Today I finish reading >.  Before this, I almost finish reading >. I think I find new world to learn. So I plan to read the > and write blog on it.The most key point I should pay attention should be

2008-08-07 16:24:00 335

原创 C++ basic types

const: Used in repace of C MACRO Must be initialized const int * const int_p;  const pointer, which pointer to a const integer reference: alias must be initialized.   typedef is no

2008-06-16 16:42:00 406

原创 起始

This is my first blog.Since using chinese will be much slow in input, So I try to mix chinese and English together.I will learning C++ now. Althrough I have some basic  understanding of C++, When

2008-06-16 16:32:00 333

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除