NOP指针 [英] NOP pointer
问题描述
有人可以说明什么是NOP指针,或者给出一个好的链接吗?
谢谢。
Greg
Can someone please expain what is a NOP pointer, or give a good link?
Thanks.
Greg
推荐答案
" TefJlives" < gm ******** @ gmail.comwrites:
"TefJlives" <gm********@gmail.comwrites:
有人可以说明什么是NOP指针,或者给出一个好的链接吗? />
谢谢。
Can someone please expain what is a NOP pointer, or give a good link?
Thanks.
据我所知,没有这样的事情。
如果你问的是null指针,请参阅comp.lang.c的第5部分
FAQ,< http://www.c-faq.com/>。
-
Keith Thompson(The_Other_Keith) ks***@mib.org < http:/ /www.ghoti.net/~kst>
圣地亚哥超级计算机中心< *< http://users.sdsc.edu/~kst>
"我们必须做点什么。这是事情。因此,我们必须这样做。
- Antony Jay和Jonathan Lynn,是部长
As far as I know, there''s no such thing.
If you''re asking about null pointers, see section 5 of the comp.lang.c
FAQ, <http://www.c-faq.com/>.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
" TefJlives" < gm ******** @ gmail.comwrites:
"TefJlives" <gm********@gmail.comwrites:
有人可以说明什么是NOP指针,或者给出一个好的链接?
Can someone please expain what is a NOP pointer, or give a good link?
你的意思是空指针吗?空指针是指向
分配了空指针常量的指针。 C99标准
定义如下:
3一个整数常量表达式,值为0,或者这样一个
表达式转换为类型void *,被称为空指针
constant.55)如果将空指针常量转换为
指针类型,则生成的指针称为null指针,
保证比较不等于指向任何对象的指针
或函数。
-
如果它没有给静态这个词带来新的含义,那就不是新的C标准了。
- C99上的Peter Seebach
Do you mean a "null pointer"? A null pointer is a pointer that
has been assigned a null pointer constant. The C99 standard
defines it like this:
3 An integer constant expression with the value 0, or such an
expression cast to type void *, is called a null pointer
constant.55) If a null pointer constant is converted to a
pointer type, the resulting pointer, called a null pointer,
is guaranteed to compare unequal to a pointer to any object
or function.
--
"It wouldn''t be a new C standard if it didn''t give a
new meaning to the word `static''."
--Peter Seebach on C99
" TefJlives" < gm ******** @ gmail.com写信息
新闻:11 ********************** @ j27g2000cwj.googlegr oups.com ...
"TefJlives" <gm********@gmail.comwrote in message
news:11**********************@j27g2000cwj.googlegr oups.com...
有人可以说明什么是NOP指针,或者给出一个好的链接吗?
谢谢。
Can someone please expain what is a NOP pointer, or give a good link?
Thanks.
不是线索。
通常NOP是指无操作。所以一个指向
空函数的函数指针可能就是你所追求的。
例如,假设你在386天内调用代码写回来了/>
过去需要一分钟才能执行。所以调用者提供了回调,因此你可以旋转一行或更新进度条。现在有了你的双核Pentium
IV,它的执行时间不到十分之一秒,所以回调没有更长的时间。但是你仍然需要提供一些东西来调用,所以
指向空函数的指针是合适的。
-
免费游戏和编程好东西。
http:// www。 personal.leeds.ac.uk/~bgy1mm
这篇关于NOP指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!