Suche senden
Hochladen
110922 knoss-vol26-c++运行库
•
0 gefällt mir
•
332 views
Zoom Quiet
Folgen
{9月22日语音讲座vol.26}杨军: C++运行库理解 http://bbs.code.ijinshan.com/thread-1374-1-1.html
Weniger lesen
Mehr lesen
Melden
Teilen
Melden
Teilen
1 von 7
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
openMagazin 7/2011
openMagazin 7/2011
Liberix, o.p.s.
110925 zdparty-正点闹钟产品分享
110925 zdparty-正点闹钟产品分享
Zoom Quiet
Procontent.Ru: Кирилл Рожковский, WapStart,, презентация на MoCO11
Procontent.Ru: Кирилл Рожковский, WapStart,, презентация на MoCO11
Procontent.Ru Magazine
основы рейки
основы рейки
lakshmilada
Conventional sources of energy (power generation) 01
Conventional sources of energy (power generation) 01
Abha Tripathi
Guia argentina de tratamiento de la EPOC
Guia argentina de tratamiento de la EPOC
Alejandro Videla
Ch01
Ch01
jashliao
C 1 c
C 1 c
hkelearning
Empfohlen
openMagazin 7/2011
openMagazin 7/2011
Liberix, o.p.s.
110925 zdparty-正点闹钟产品分享
110925 zdparty-正点闹钟产品分享
Zoom Quiet
Procontent.Ru: Кирилл Рожковский, WapStart,, презентация на MoCO11
Procontent.Ru: Кирилл Рожковский, WapStart,, презентация на MoCO11
Procontent.Ru Magazine
основы рейки
основы рейки
lakshmilada
Conventional sources of energy (power generation) 01
Conventional sources of energy (power generation) 01
Abha Tripathi
Guia argentina de tratamiento de la EPOC
Guia argentina de tratamiento de la EPOC
Alejandro Videla
Ch01
Ch01
jashliao
C 1 c
C 1 c
hkelearning
C 1 c
C 1 c
hkelearning
C 1 c
C 1 c
hkelearning
C 1 c
C 1 c
hkelearning
C++
C++
LohasBicycle
C+
C+
LohasBicycle
C#
C#
LohasBicycle
C++工程实践
C++工程实践
Shuo Chen
ajax_onlinemad
ajax_onlinemad
Kitor23
Csharp summary
Csharp summary
cri fan
Csharp summary
Csharp summary
cri fan
Linux c++ 编程之链接与装载 -基础篇--v0.3--20120509
Linux c++ 编程之链接与装载 -基础篇--v0.3--20120509
tidesq
第六章 函數與巨集
第六章 函數與巨集
shademoon
第六章 函數與巨集
第六章 函數與巨集
shademoon
第六章 函數與巨集
第六章 函數與巨集
shademoon
第六章 函數與巨集
第六章 函數與巨集
shademoon
How A Compiler Works: GNU Toolchain
How A Compiler Works: GNU Toolchain
National Cheng Kung University
Recycle Open Source Projects
Recycle Open Source Projects
George Ang
2006 recycle opensourceprojects
2006 recycle opensourceprojects
George Ang
C語言 第一章 C語言簡介
C語言 第一章 C語言簡介
shademoon
06 函數與巨集
06 函數與巨集
shademoon
42qu thrift1
42qu thrift1
Zoom Quiet
产品信息收集系统Infoc的演变
产品信息收集系统Infoc的演变
Zoom Quiet
Weitere ähnliche Inhalte
Ähnlich wie 110922 knoss-vol26-c++运行库
C 1 c
C 1 c
hkelearning
C 1 c
C 1 c
hkelearning
C 1 c
C 1 c
hkelearning
C++
C++
LohasBicycle
C+
C+
LohasBicycle
C#
C#
LohasBicycle
C++工程实践
C++工程实践
Shuo Chen
ajax_onlinemad
ajax_onlinemad
Kitor23
Csharp summary
Csharp summary
cri fan
Csharp summary
Csharp summary
cri fan
Linux c++ 编程之链接与装载 -基础篇--v0.3--20120509
Linux c++ 编程之链接与装载 -基础篇--v0.3--20120509
tidesq
第六章 函數與巨集
第六章 函數與巨集
shademoon
第六章 函數與巨集
第六章 函數與巨集
shademoon
第六章 函數與巨集
第六章 函數與巨集
shademoon
第六章 函數與巨集
第六章 函數與巨集
shademoon
How A Compiler Works: GNU Toolchain
How A Compiler Works: GNU Toolchain
National Cheng Kung University
Recycle Open Source Projects
Recycle Open Source Projects
George Ang
2006 recycle opensourceprojects
2006 recycle opensourceprojects
George Ang
C語言 第一章 C語言簡介
C語言 第一章 C語言簡介
shademoon
06 函數與巨集
06 函數與巨集
shademoon
Ähnlich wie 110922 knoss-vol26-c++运行库
(20)
C 1 c
C 1 c
C 1 c
C 1 c
C 1 c
C 1 c
C++
C++
C+
C+
C#
C#
C++工程实践
C++工程实践
ajax_onlinemad
ajax_onlinemad
Csharp summary
Csharp summary
Csharp summary
Csharp summary
Linux c++ 编程之链接与装载 -基础篇--v0.3--20120509
Linux c++ 编程之链接与装载 -基础篇--v0.3--20120509
第六章 函數與巨集
第六章 函數與巨集
第六章 函數與巨集
第六章 函數與巨集
第六章 函數與巨集
第六章 函數與巨集
第六章 函數與巨集
第六章 函數與巨集
How A Compiler Works: GNU Toolchain
How A Compiler Works: GNU Toolchain
Recycle Open Source Projects
Recycle Open Source Projects
2006 recycle opensourceprojects
2006 recycle opensourceprojects
C語言 第一章 C語言簡介
C語言 第一章 C語言簡介
06 函數與巨集
06 函數與巨集
Mehr von Zoom Quiet
42qu thrift1
42qu thrift1
Zoom Quiet
产品信息收集系统Infoc的演变
产品信息收集系统Infoc的演变
Zoom Quiet
Go courseday3
Go courseday3
Zoom Quiet
Go courseday2
Go courseday2
Zoom Quiet
Go courseday1
Go courseday1
Zoom Quiet
01s0401 go,互联网时代的c语言 许式伟
01s0401 go,互联网时代的c语言 许式伟
Zoom Quiet
Zoz pwned-by-the-owner-表惹程序猿
Zoz pwned-by-the-owner-表惹程序猿
Zoom Quiet
金山云查询系统改进之路1
金山云查询系统改进之路1
Zoom Quiet
Zh120226techparty zd-story
Zh120226techparty zd-story
Zoom Quiet
Zh120226techparty velocity2011-review
Zh120226techparty velocity2011-review
Zoom Quiet
Zh120226techparty jeff kit-ios-toolbox
Zh120226techparty jeff kit-ios-toolbox
Zoom Quiet
Velocity2011分享
Velocity2011分享
Zoom Quiet
陈正 Introduction to-sae_python
陈正 Introduction to-sae_python
Zoom Quiet
111218 zhtechparty-panda讲稿
111218 zhtechparty-panda讲稿
Zoom Quiet
111218 zhtechparty-移动互联网产品需求分析
111218 zhtechparty-移动互联网产品需求分析
Zoom Quiet
111218 zhtechparty-zd-浅谈symbian开发
111218 zhtechparty-zd-浅谈symbian开发
Zoom Quiet
ImpoImport this, that, and the other thing: custom importersrt not for_y
ImpoImport this, that, and the other thing: custom importersrt not for_y
Zoom Quiet
Import this, that, and the other thing: custom importers
Import this, that, and the other thing: custom importers
Zoom Quiet
金山卫士界面框架
金山卫士界面框架
Zoom Quiet
111030 gztechparty-小路-云时代的mysql
111030 gztechparty-小路-云时代的mysql
Zoom Quiet
Mehr von Zoom Quiet
(20)
42qu thrift1
42qu thrift1
产品信息收集系统Infoc的演变
产品信息收集系统Infoc的演变
Go courseday3
Go courseday3
Go courseday2
Go courseday2
Go courseday1
Go courseday1
01s0401 go,互联网时代的c语言 许式伟
01s0401 go,互联网时代的c语言 许式伟
Zoz pwned-by-the-owner-表惹程序猿
Zoz pwned-by-the-owner-表惹程序猿
金山云查询系统改进之路1
金山云查询系统改进之路1
Zh120226techparty zd-story
Zh120226techparty zd-story
Zh120226techparty velocity2011-review
Zh120226techparty velocity2011-review
Zh120226techparty jeff kit-ios-toolbox
Zh120226techparty jeff kit-ios-toolbox
Velocity2011分享
Velocity2011分享
陈正 Introduction to-sae_python
陈正 Introduction to-sae_python
111218 zhtechparty-panda讲稿
111218 zhtechparty-panda讲稿
111218 zhtechparty-移动互联网产品需求分析
111218 zhtechparty-移动互联网产品需求分析
111218 zhtechparty-zd-浅谈symbian开发
111218 zhtechparty-zd-浅谈symbian开发
ImpoImport this, that, and the other thing: custom importersrt not for_y
ImpoImport this, that, and the other thing: custom importersrt not for_y
Import this, that, and the other thing: custom importers
Import this, that, and the other thing: custom importers
金山卫士界面框架
金山卫士界面框架
111030 gztechparty-小路-云时代的mysql
111030 gztechparty-小路-云时代的mysql
110922 knoss-vol26-c++运行库
1.
了解 C/C++ 运行 库
杨 军
2.
主要分享内容 1
C/C++ 运行库是什么 2 C/C++ 运行库的功能 3 如何减小软件的大小
3.
C/C++ 运行库是什么
每一个 C/C++ 程序,它的背后都有一套庞大的代码来进行支撑,以使得该 程序能够正常运行。这套代码就是 C/C++ 运行库。 C/C++ 运行库由编绎器提 供。 它主要有两个作用:实现 C/C++ 标准库函数的和实现 C/C++ 语言的一些机 制。
4.
实现 C/C++ 标准库函数
C/C++ 运行库的大部分代码都是在实现 C,C++ 标准库函 数 , 如 : printf, fopen, malloc, strlen, time, _beginthreadex, std::string 等。 1. 标准库函数与 Windows API 的关系 2. 需要注意的一些函数。 a. 使用了 TLS 的库函数 , 比如 _localtime64 b. _beginthreadex 和 CreateThread() 3. 动态链接 (MD) 与静态链接 (MT) 。 a: 链接错误,大部分是因为 lib 的编绎方式不一 致。 b: 模块间内存释放 , 谁分配谁释放。
5.
实现 C/C++ 语言机制
C/C++ 运行库实现了 C/C++ 语言自身的一些语言机制,比 如 main 函数进入前全局变量要完成构造。静态变量的只能初 始化一次,异常处理机制等。 1. 全局变量及类中静态成员变量的初始化。 2. 应用程序的入口函数。 3. 静态变量的初始化
6.
如何减小软件的 Size 1. 模块数非常多,使用
MD 编绎 2. 模块数非常少,使用 MT 编绎 3. 使用 VC6 运行库。 4. 不使用 CRT
7.
Thank you !
推荐书籍 : 1. 《程序员的自我修养》 2. 《 windows 核心编 程》
Jetzt herunterladen