C与C ++的时间和内存性能 [英] Time and memory performance of C versus C++

查看:67
本文介绍了C与C ++的时间和内存性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了证明C / /
代码比同等的C ++代码更高效,更紧凑的争论,已经进行了大量研究。

神话。我的帖子涉及这个

辩论的略有不同的方面。以下是我的两个问题:


1)有没有人有关于C和C ++比较的信息

为ARM处理器编写的软件?


2)在讨论这个问题时,是否有任何编译器和CPU依赖关系必须考虑到?b $ b?或者,问题是或多或少

为所有编译器和所有CPU解决了?


谢谢,

Kandregula Anil K.

解决方案

Generic Usenet Account写道:


大量研究已经完成了证明C / /
代码比同等C ++代码更有效和更紧凑的争论是一个

神话。



我会接受你的话。


我的帖子属于略有不同的方面这个

辩论。以下是我的两个问题:


1)有没有人有关于C和C ++比较的信息

为ARM处理器编写的软件?


2)在讨论这个问题时,是否有任何编译器和CPU依赖关系必须考虑到?b $ b?



否。辩论这个问题是没有意义的。任何。我肯定在''comp.lang.c'中我的弟兄们中肯定会有某人

当然有不同意见。
< blockquote class =post_quotes>
或者,问题是或多或少

为所有编译器和所有CPU设定的?

http ://www.research.att.com/~bs/bs_faq.html#C-is-better 你是否看到

提到平台或CPU?


V

-

请在通过电子邮件回复时删除资金''A'

我没有回复最热门的回复,请不要问


Generic Usenet Account写道:


已经做了很多研究来证明C / /
代码比同等的C ++代码更有效和更紧凑的论点是

神话。我的帖子涉及这个

辩论的略有不同的方面。以下是我的两个问题:


1)有没有人有关于C和C ++比较的信息

为ARM处理器编写的软件?



可以用任何一种语言编写糟糕的低效低效代码,或者可以用/或
编写优雅高效的代码。程序员编写代码,而不是
编译器,所以没有什么可以学习或讨论的。


-

Ian柯林斯。


11月9日下午2:48,Ian Collins< ian-n ... @ hotmail.comwrote:


Generic Usenet Account写道:


已经做了很多研究来证明C

的争论代码比同等的C ++代码更高效,更紧凑。

神话。我的帖子涉及这个

辩论的略有不同的方面。以下是我的两个问题:


1)有没有人有关于C和C ++比较的任何信息

软件为ARM处理器?



用任何一种语言都可以写出糟糕的低效低效代码,或者可以用/ b $ b来编写优雅高效的代码。程序员编写代码,而不是
编译器,所以没有什么可以学习或讨论的。


-

Ian科林斯。



这些天用3ghz计算机的内存超过1GB,那么优雅高效的代码对于b $ b重要吗?


A lot of research has been done to prove that the contention that C
code is more efficient and more compact than equivalent C++ code is a
myth. My posting pertains to a slightly different aspect of this
debate. Here are my two questions:

1) Does anyone have any information on comparison of C and C++
software written for the ARM processor?

2) Are there any compiler and CPU dependencies that have to be
factored in while debating this issue? Or, is the issue more or less
settled for all compilers and all CPUs?

Thanks,
Kandregula Anil K.

解决方案

Generic Usenet Account wrote:

A lot of research has been done to prove that the contention that C
code is more efficient and more compact than equivalent C++ code is a
myth.

I''ll take your word for it.

My posting pertains to a slightly different aspect of this
debate. Here are my two questions:

1) Does anyone have any information on comparison of C and C++
software written for the ARM processor?

2) Are there any compiler and CPU dependencies that have to be
factored in while debating this issue?

No. There is no point in debating this "issue" whatsoever. I am
sure that among my brethren in ''comp.lang.c'' there will be somebody
with a different opinion, of course.

Or, is the issue more or less
settled for all compilers and all CPUs?

http://www.research.att.com/~bs/bs_faq.html#C-is-better Do you see
any mention of a platform or CPU?

V
--
Please remove capital ''A''s when replying by e-mail
I do not respond to top-posted replies, please don''t ask


Generic Usenet Account wrote:

A lot of research has been done to prove that the contention that C
code is more efficient and more compact than equivalent C++ code is a
myth. My posting pertains to a slightly different aspect of this
debate. Here are my two questions:

1) Does anyone have any information on comparison of C and C++
software written for the ARM processor?

One can write piss poor inefficient code in either language, or one can
write elegant efficient code in either. Programmers write code, not
compilers, so there isn''t anything to study or discuss.

--
Ian Collins.


On Nov 9, 2:48 pm, Ian Collins <ian-n...@hotmail.comwrote:

Generic Usenet Account wrote:

A lot of research has been done to prove that the contention that C
code is more efficient and more compact than equivalent C++ code is a
myth. My posting pertains to a slightly different aspect of this
debate. Here are my two questions:

1) Does anyone have any information on comparison of C and C++
software written for the ARM processor?


One can write piss poor inefficient code in either language, or one can
write elegant efficient code in either. Programmers write code, not
compilers, so there isn''t anything to study or discuss.

--
Ian Collins.

These days with 3ghz computers with more than 1 gbyte RAM what is so
important about elegant, efficient code?


这篇关于C与C ++的时间和内存性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆