s*****w 发帖数: 1527 | |
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 ...
|