реклама на сайте
подробности

 
 
> Чем отличается uint8_t от unsigned char?
-=Женек=-
сообщение May 14 2010, 19:33
Сообщение #1


Знающий
****

Группа: Свой
Сообщений: 559
Регистрация: 6-09-06
Пользователь №: 20 131



Коллеги, переношу проект из WinAVR в KEIL.
Есть переменная uint8_t - в KEIL не прокатывает. Задумался, а чем же по сути она отличается от char. И как ее объявить в KEIL, дабы перенести без минимальных последствий?
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
ViKo
сообщение Jun 15 2010, 08:31
Сообщение #2


Универсальный солдатик
******

Группа: Модераторы
Сообщений: 8 634
Регистрация: 1-11-05
Из: Минск
Пользователь №: 10 362



Вот цитата из словаря.
Цитата
byte (Computer En)
[techspeak] n. A unit of memory or data equal to the amount used to represent one character; on modern architectures this is usually 8 bits, but may be 9 on 36-bit machines. Some older architectures used 'byte' for quantities of 6 or 7 bits, and the PDP-10 supported 'bytes' that were actually bitfields of 1 to 36 bits! These usages are now obsolete, and even 9-bit bytes have become rare in the general trend toward power-of-2 word sizes.

Historical note: The term originated in 1956 during the early design phase for the IBM Stretch computer; originally it was described as 1 to 6 bits (typical I/O equipment of the period used 6-bit chunks of information). The move to an 8-bit byte happened in late 1956, and this size was later adopted and promulgated as a standard by the System/360 . The term 'byte' was coined by mutating the word 'bite' so it would not be accidentally misspelled as bit. See also nybble.
Go to the top of the page
 
+Quote Post

Сообщений в этой теме
- -=Женек=-   Чем отличается uint8_t от unsigned char?   May 14 2010, 19:33
- - rezident   Тем, что uint8_t имеет конкретно определенную разм...   May 14 2010, 19:44
|- - dch   Цитата(rezident @ May 14 2010, 23:44) В с...   May 15 2010, 03:27
|- - Danis   UInt8 - An unsigned 8-bit integer. This value maps...   May 20 2010, 11:29
|- - demiurg_spb   Откуда цитата? И какое отношение она имеет к соотн...   May 20 2010, 13:41
- - shista   Добавьте к инклудам #include <inttypes.h> ил...   Jun 12 2010, 19:08
- - baralgin   Цитата(rezident @ May 14 2010, 22:44) Тем...   Jun 12 2010, 20:07
|- - demiurg_spb   Чстенько компиляторы имеют свои собственные builti...   Jun 13 2010, 09:06
- - sigmaN   Открою Вам маленький секрет В stdint.h для C2000 ...   Jun 13 2010, 10:36
|- - demiurg_spb   Интересный ход. Нет человека - нет проблем!:-)   Jun 13 2010, 10:55
- - sigmaN   Ну не может он обеспечить 8бит никак! там siz...   Jun 13 2010, 16:06
|- - dxp   Цитата(sigmaN @ Jun 13 2010, 23:06) там s...   Jun 14 2010, 04:53
|- - demiurg_spb   Цитата(sigmaN @ Jun 13 2010, 20:06) Ну не...   Jun 14 2010, 10:04
||- - Сергей Борщ   Цитата(demiurg_spb @ Jun 14 2010, 13:04) ...   Jun 14 2010, 10:13
|||- - demiurg_spb   Цитата(Сергей Борщ @ Jun 14 2010, 14:13) ...   Jun 14 2010, 11:59
||- - rezident   Цитата(demiurg_spb @ Jun 14 2010, 16:04) ...   Jun 14 2010, 22:25
|- - =GM=   Цитата(sigmaN @ Jun 13 2010, 15:06) Ну не...   Jun 14 2010, 10:25
- - baralgin   Цитата(dxp @ Jun 14 2010, 07:53) А где ин...   Jun 14 2010, 05:47
- - baralgin   легкий поиск гуглом и оказывается таки 1, как и in...   Jun 14 2010, 06:50
- - sigmaN   ЦитатаЭто была опечатка. Как раз равно 2именно 1. ...   Jun 14 2010, 07:20
|- - Сергей Борщ   Цитата(sigmaN @ Jun 14 2010, 10:20) но ту...   Jun 14 2010, 09:52
- - sigmaN   ггг. Геморрой не стоит свеч и если это volatile ...   Jun 14 2010, 18:44
|- - demiurg_spb   Цитата(sigmaN @ Jun 14 2010, 22:44) и есл...   Jun 14 2010, 20:06
|- - Сергей Борщ   Цитата(demiurg_spb @ Jun 14 2010, 23:06) ...   Jun 15 2010, 06:03
|- - demiurg_spb   Цитата(Сергей Борщ @ Jun 15 2010, 10:03) ...   Jun 15 2010, 09:37


Reply to this topicStart new topic
2 чел. читают эту тему (гостей: 2, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 18th July 2025 - 00:59
Рейтинг@Mail.ru


Страница сгенерированна за 0.01396 секунд с 7
ELECTRONIX ©2004-2016