未来C标准的装配 [英] assembly in future C standard

查看:43
本文介绍了未来C标准的装配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

某些编译器支持__asm {}语句,该语句允许集成C

和原始汇编代码。前段时间我问了一个关于这种

语法的问题,并被告知__asm不是C标准的一部分。我的

问题现在是:


这样的声明是否有可能成为C标准的一部分

将来?在某些情况下使用asm语言是完成一些小任务的最佳方式,因此C和asm的集成将极大地增加C或者至少在我看来。


有没有充分的理由说__asm不是当前C标准的一部分?


我遇到了支持和其他人的编译器忽略__asm

语句显然它仍然不是C标准的一部分。

Some compilers support __asm{ } statement which allows integration of C
and raw assembly code. A while back I asked a question about such
syntax and was told that __asm is not a part of a C standard. My
question now is:

Is there a chance that such statement will become a part of C standard
in the future? In some cases using asm language is the best way to
acomplish some small task, hence integration of C and asm would greatly
enhence C, or atleast it would in my opinion.

Is there a good reason why __asm is not a part of current C standard?

I have bumped into compilers that support and others that ignore __asm
statement so obviously it is still not a part of C standard.

推荐答案

fermineutron说:
fermineutron said:

有些编译器支持__asm {}语句,它允许集成C

和原始汇编代码。前段时间我问了一个关于这种

语法的问题,并被告知__asm不是C标准的一部分。我的

问题现在是:


这样的声明是否有可能成为C标准的一部分

将来?
Some compilers support __asm{ } statement which allows integration of C
and raw assembly code. A while back I asked a question about such
syntax and was told that __asm is not a part of a C standard. My
question now is:

Is there a chance that such statement will become a part of C standard
in the future?



No.

No.


在某些情况下使用asm语言是
$的最佳方式b $ b完成一些小任务,因此C和asm的集成将极大地增加C,或者至少它会在我看来。
In some cases using asm language is the best way to
acomplish some small task, hence integration of C and asm would greatly
enhence C, or atleast it would in my opinion.



No.

No.


有没有充分理由说__asm不是当前C标准的一部分?
Is there a good reason why __asm is not a part of current C standard?



是的。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上面的域名(但显然放弃了www)

Yes.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)


周六,2006-10-28 at 09:01 -0700,fermineutron写道:
On Sat, 2006-10-28 at 09:01 -0700, fermineutron wrote:

这样的声明是否有可能成为C标准的一部分

将来?在某些情况下使用asm语言是完成一些小任务的最佳方式,因此C和asm的集成将极大地增加C或者至少在我看来。
Is there a chance that such statement will become a part of C standard
in the future? In some cases using asm language is the best way to
acomplish some small task, hence integration of C and asm would greatly
enhence C, or atleast it would in my opinion.



我会说不,但系统()是C标准的一部分

使这个答案有问题。

I''d say no, but the fact that system() is a part of the C standard
makes that answer questionable.


是否有充分理由说__asm不是当前C标准的一部分?
Is there a good reason why __asm is not a part of current C standard?



它在不同的架构中100%不便携,这与C的精神相反。


-

Andrew Poelstra< http://www.wpsoftware.net/projects/>

It''s 100% non-portable among different architectures, which is contrary
to the spirit of C.

--
Andrew Poelstra <http://www.wpsoftware.net/projects/>


" fermineutron" < fr ********** @ yahoo.comwrites:
"fermineutron" <fr**********@yahoo.comwrites:

有没有充分理由说__asm不是当前C标准的一部分?
Is there a good reason why __asm is not a part of current C standard?



它会使C语言不便携。


-

祝你好运,_ _

.o。 | Serenly Enlightened Majesty of o'',=。/`o

..o |计算机科学,Michalmina86 Nazarewicz(oo)

ooo + - < mina86 * tlen.pl> ---< jid:mina86 * chrome.pl> - ooO - (_) - Ooo--

It''ll make C language not portable.

--
Best regards, _ _
.o. | Liege of Serenly Enlightened Majesty of o'' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +--<mina86*tlen.pl>---<jid:mina86*chrome.pl>--ooO--(_)--Ooo--


这篇关于未来C标准的装配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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