由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 用stl的程序一般比不用stl library的size大多少?
相关主题
why do we still use dynamic allocation?C++ delete
一个C++ operator new的重载问题关于内存泄漏
一个 default constructor 的问题C++一个string的小问题
How solid it is: c++/c# call Matlab library一个奇怪的library linking问题(c++, boost.python, shared li (转载)
C++11 大家有用过吗?再问一个free()的问题
array allocation in cC++ Interview Question
新手,一个C 库的问题内存分配问题
effective C++里的memory pool 一问:a small question about c++ memory allocation
相关话题的讨论汇总
话题: stl话题: kernel话题: os话题: api话题: c++
进入Programming版参与讨论
1 (共1页)
s*****w
发帖数: 1527
1
我是说一般情况,比如只用vector
w***g
发帖数: 5958
2
10x吧,如果把调试信息去掉的话。who cares about size.

【在 s*****w 的大作中提到】
: 我是说一般情况,比如只用vector
d***i
发帖数: 344
3
没那么多吧。跟c比可能有这么大差距,但如果lz用c假假自己造轮子应该差不了这么多
倍。

【在 w***g 的大作中提到】
: 10x吧,如果把调试信息去掉的话。who cares about size.
s*****w
发帖数: 1527
4
small memory footprint system cares ...

【在 w***g 的大作中提到】
: 10x吧,如果把调试信息去掉的话。who cares about size.
g******r
发帖数: 213
5
in that case, even C++ is not an option, why bother stl?

【在 s*****w 的大作中提到】
: small memory footprint system cares ...
w***g
发帖数: 5958
6
是的,我跟C比了。如果跟C++比估计没什么区别。

【在 d***i 的大作中提到】
: 没那么多吧。跟c比可能有这么大差距,但如果lz用c假假自己造轮子应该差不了这么多
: 倍。

s*****w
发帖数: 1527
7
this is good, because i want to use stl in the kernel code,
at the same time hope to keep the kernel small.

【在 w***g 的大作中提到】
: 是的,我跟C比了。如果跟C++比估计没什么区别。
z***e
发帖数: 5393
8
????those stl allocator can work in kernel?

【在 s*****w 的大作中提到】
: this is good, because i want to use stl in the kernel code,
: at the same time hope to keep the kernel small.

s*****w
发帖数: 1527
9
stl is a keyword for job search these days,
so i'll try to use stl in the kernel code,
is it that impossible ?

【在 z***e 的大作中提到】
: ????those stl allocator can work in kernel?
t****t
发帖数: 6806
10
kernel? you mean OS kernel?
usually OS kernel has different API. for example, most probably you don't ha
ve printf. instead, you use printk (in linux).
kernel API is very limited. very very limited.

【在 s*****w 的大作中提到】
: stl is a keyword for job search these days,
: so i'll try to use stl in the kernel code,
: is it that impossible ?

U********d
发帖数: 577
11
可以但不推荐。就好比捅下水道把重型挖掘机搬出来一样。:)

【在 s*****w 的大作中提到】
: stl is a keyword for job search these days,
: so i'll try to use stl in the kernel code,
: is it that impossible ?

s*****w
发帖数: 1527
12
guess i only care to put keywords in resumes, sigh ...

【在 U********d 的大作中提到】
: 可以但不推荐。就好比捅下水道把重型挖掘机搬出来一样。:)
g******r
发帖数: 213
13
it's not a good idea. You can find some other applications to fit stl in. It
's too risky to talk about stl in kernel. People may just think you are
truly a genius, or just dumb...

【在 s*****w 的大作中提到】
: guess i only care to put keywords in resumes, sigh ...
1 (共1页)
进入Programming版参与讨论
相关主题
a small question about c++ memory allocationC++11 大家有用过吗?
Remove elements from multiple vectors in C++array allocation in c
请教关于allocator member function 的问题新手,一个C 库的问题
在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)effective C++里的memory pool 一问:
why do we still use dynamic allocation?C++ delete
一个C++ operator new的重载问题关于内存泄漏
一个 default constructor 的问题C++一个string的小问题
How solid it is: c++/c# call Matlab library一个奇怪的library linking问题(c++, boost.python, shared li (转载)
相关话题的讨论汇总
话题: stl话题: kernel话题: os话题: api话题: c++