It Made Sense in 1978
Programming in the 21st Century - James Hague - March 04, 2010Whenever I see this list of memory cell sizes, it strikes me as antiquated:
BYTE = 8 bits WORD = 16 bits LONG = 32 bits
Those names were standard for both the Intel x86 and Motorola 68000 families of processors, and it’s easy to see where they came from. “Word” isn’t synonymous with a 16-bit value; it refers to the fundamental data size that a computer architecture is built to operate upon. On a 16-bit CPU like the 8086, a word is naturally 16-bits.
Now it’s 2010, and it’s silly to think of a 16-bit value as a basic enough unit of data to get to the designation “word.” “Long” is similarly out of place, as 32-bit microprocessors have been around for over 25 years, and yet the standard memory cell size is still labeled in a way that makes it sound abnormally large.
The PowerPC folks got this right back in the early 1990s with this nomenclature:
BYTE = 8 bits HALFWORD = 16 bits WORD = 32 bits
That made sense in 1991, and it’s still rational today. (64-bit is now common, but the jump isn’t nearly as critical as it was the last time memory cell size doubled. The PowerPC name for “64-bits” is “doubleword.”)
Occasionally you need to reevaluate your assumptions and not just cling to something because it’s always been that way.
Categories: Blogs Programming in the 21st Century
Comments
На сайте компании “АВЕРС” http://www.aversnpk.ru/ представлена информация о фототерапевтических устройствах компании “АВЕРС”. Физиотерапевтические приборы компании: соска “Доктор Свет”, “АВЕРС-Душ”, “АВЕРС-Лайт”, “АВЕРС-Сан”. Соска “Доктор свет” - лечение ОРЗ, лечение ОРВИ у детей раннего возраста. Физиотерапевтический прибор “Доктор Свет” (патент № 55293) эффективен при лечении и профилактики ОРЗ, ОРВИ, лечении кашля.
Posted by avers on 05 Mar 2010 at 18:47http://www.web-bpro.ru/ Веб-студия “Бизнес-Профессионал” - создание интернет сайтов, создание интернет магазина по разумным ценам, быстро, качественно, профессионально. Создание интернет сайтов с индивидуальным дизайном сайта. Поддержка и продвижение сайта в интернете.
Компания Бизнес-Профессионал оказывает риэлторские услуги в сфере коммерческой недвижимости: аренда офисов, складов, магазинов в Москве. http://www.business-pro.ru/
I always just thought of a “word” as whatever the word size of a specific machine’s word was. So, machine specific, rather than being “right” or “wrong” if it’s different between machines.
Posted by Paul Bonser on 07 Mar 2010 at 01:32I agree that word size is machine specific, but it becomes language-specific once it’s in a language definition. In Java an int is defined as 32 bits, and a long as 64 bits. But now the computers I use most often are 64 bit machines, and so there is a case for considering an int 64 bits and for introducing a longlong type, though there is BigInteger. Changing the definition of int would introduce incompatibilities such as the C and C++ folks are used to. This isn’t an issue on planet Erlang, though, because the coupling between the integer type and the underlying architecture is weaker.
Posted by Jeff Martens on 09 Mar 2010 at 16:25
Add comment
Erlang on Twitter
» tichise (Takuya Ichise): RT @AntiBayes: 【言語別業務時の服装】
・Clojure:全裸
・Scheme:全裸
・Gauche:全裸
・Prolog:全裸
・Scala:全裸
・Erlang:全裸
・C++:全裸
» mshiba64 (Masami Shibatani): ということで、ErlangのBit Syntaxに突入。language for distributed and concurrent programだからね。
» despenjahatdos (Jon champion): Eits jangan salah begini2 saya titisan dewa erlang RT @yolapitalokaa: Yg ngepost twit kyknya jg lg galau drtd ... http://t.co/QfCyVSIl
» erlangtriaji (erlang triaji ): Sini sun ahahaha RT @Encays: Udah udah, lo berduaan aja RT @revianh: Kepooo! RT @erlangtriaji: Hadir RT @Encays: Udah, sama erlang aj
» Encays (antarif cahyadi): Menjepit RT @erlangtriaji: Tegang! RT @revianh: Kepooo! RT @erlangtriaji: Hadir RT @Encays: Udah, sama erlang aja RT @revianh
» erlangtriaji (erlang triaji ): Tegang! RT @revianh: Kepooo! RT @erlangtriaji: Hadir RT @Encays: Udah, sama erlang aja RT @revianh: Nanggepnya lama banget
» Encays (antarif cahyadi): Udah udah, lo berduaan aja RT @revianh: Kepooo! RT @erlangtriaji: Hadir RT @Encays: Udah, sama erlang aja RT @revianh: Nanggepnya lama
» revianh (Revian Hermansyah): Kepooo! RT @erlangtriaji: Hadir RT @Encays: Udah, sama erlang aja RT @revianh: Nanggepnya lama banget -_-
» erlangtriaji (erlang triaji ): Hadir RT @Encays: Udah, sama erlang aja RT @revianh: Nanggepnya lama banget -_-
» Encays (antarif cahyadi): Udah, sama erlang aja RT @revianh: Nanggepnya lama banget -_-
Statistics
Number of aggregated posts: 10454
Number of comments: 1392
Most recent article: January 31, 2012
Latest comments
» nobelboy on OpaDo Data Storage: Feel free to add some Qs here or contact me offline, and I will see what I can work into…
» darrensy on The Twisted Matrix: This has been a great idea you have shared. covers for kindle
» jony on Principle Software Engineer at LonoCloud (Full-time): That provides will become a internet marketer of little kinds of expert methods developers developing strategy using Erlang/OTP. There will…