什么是单词边界? [英] what is word boundary?

查看:172
本文介绍了什么是单词边界?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以指导我什么是单词边界吗?

google对我来说没有好处

提前感谢

Can some one guide me what is word boundary?
google is no good for me for this
thanks in advance

推荐答案

On Sun,2005年9月18日00:15:43 +0100,Singleton

< ku ***** @ homecall.co。 UK>在comp.lang.c ++中写道:
On Sun, 18 Sep 2005 00:15:43 +0100, "Singleton"
<ku*****@homecall.co.uk> wrote in comp.lang.c++:
有人可以指导我什么是单词边界吗?
谷歌对我来说对此没有好处
感谢提前
Can some one guide me what is word boundary?
google is no good for me for this
thanks in advance




是什么让你决定在这里提出这个问题?没有这样的术语

由C ++语言定义。


-

Jack Klein

主页: http://JK-Technology.Com



comp.lang.c的常见问题解答 http://www.eskimo.com/~scs/C-faq/top.html

comp.lang.c ++ http://www.parashift.com/c++-faq-lite/

alt.comp.lang.learn.c-c ++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html



What made you decide to ask this question here? There is no such term
defined by the C++ language.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html


I刚刚在脑海中进行了c ++考试。其中一个问题是

问:)根据C ++标准,内存中的对象'内部

表示保证是什么?

选择1:连续

选择2:在筹码上

选择3:已初始化

选择4:在单词边界

选择5:在堆上


即使是一家公司的c ++技术测试之一也在询问相同的问题。
事实上在Google中有许多c ++网站在讨论单词

边界的问题。

希望你确信。

问候,

S

无知是幸福

" Jack Klein" < JA ******* @ spamcop.net>在消息中写道

news:fm ******************************** @ 4ax.com ...
I just took c++ exam in brainbnch . one of the question is
Q:)According to the C++ standard, what is an object''s internal
representation in memory guaranteed to be?
Choice 1 : Contiguous
Choice 2 : On the stack
Choice 3 : Initialized
Choice 4 : On a word boundary
Choice 5 : On the heap

Even one of the c++ technical test for a company was asking the same
question.
In fact in Google there are many c++ sites talking about problems with word
boundary.
hope you are convinced.

Regards,
S
ignorance is bliss
"Jack Klein" <ja*******@spamcop.net> wrote in message
news:fm********************************@4ax.com...
On Sun,2005年9月18日00:15:43 +0100,Singleton
< ku ***** @ homecall.co.uk>在comp.lang.c ++中写道:
On Sun, 18 Sep 2005 00:15:43 +0100, "Singleton"
<ku*****@homecall.co.uk> wrote in comp.lang.c++:
有人可以指导我什么是单词边界吗?
谷歌对我来说对此没有好处
感谢提前
Can some one guide me what is word boundary?
google is no good for me for this
thanks in advance



是什么让你决定在这里提出这个问题?没有这样的术语由C ++语言定义。

-
Jack Klein
主页: http://JK-Technology.Com
comp.lang.c的常见问题解答 http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c ++ http:// www。 parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c ++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html






这取决于单词的大小。在今天的很多机器上,一个字是32美元b $ b位。这意味着在单词边界上的地址是

0

4

8

12

16

等......十年前左右b $ b一个字曾经是16(8086)位,之前是8位

很常见(6502,6800,6809)


通常使用处理器会有一点性能提升

原生大小。因此,使用32位和单词

边界上的内存地址可以更有效。比非32位-16位的存储器地址

甚至非32-非16位但是8位地址,即使后者更小,你也可能会因为速度慢而导致
使用这些大小和地址时的代码。在您的

代码中。

-

问候,Ron AF Greve

http://moonlit.xs4all.nl


" Singleton" <ク***** @ homecall.co.uk>在消息中写道

news:43 ********** @ mk-nntp-2.news.uk.tiscali.com ...
Hi,

It depends on how large a word is. On a lot of machines today a word is 32
bit. That means on a word boundary is at address
0
4
8
12
16
etc...

ten years ago or so a word used to be 16 (8086) bits and before that 8 bit
was common (6502, 6800, 6809)

Usually there is a bit of a performance gain working with the processors
native size. So using 32 bits and memory addresses that are on a word
boundary can be more efficient. than memory addresses at non-32 bit -16 bit
or even non 32- non- 16 but 8 bit addresses even the latter is smaller you
might end up with slower code when using those sizes and addresses . in your
code.
--
Regards, Ron AF Greve

http://moonlit.xs4all.nl

"Singleton" <ku*****@homecall.co.uk> wrote in message
news:43**********@mk-nntp-2.news.uk.tiscali.com...
Can有人指导我什么是单词边界?
谷歌对我来说没有好处
提前感谢
Can some one guide me what is word boundary?
google is no good for me for this
thanks in advance



这篇关于什么是单词边界?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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