Lecture 3/12: Bits, Bytes and Words

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2015
  • Prof. Harry Porter
    Portland State University
    cs.pdx.edu/~harry

ความคิดเห็น • 51

  • @smoothbeak
    @smoothbeak 8 ปีที่แล้ว +65

    You're a computer wizard Harry!

    • @Nobodyyoucarabout
      @Nobodyyoucarabout 7 ปีที่แล้ว +6

      i read harry potter as well the first time hahaha

  • @Kor1134
    @Kor1134 2 หลายเดือนก่อน

    Octal is used in Linux to set file and directory permissions: 1 = x, 2 = w, 4 = r; 6 = 4+2 = rw; 7 = 4+2+1 = rwx.

  • @ideaparkcc
    @ideaparkcc 11 หลายเดือนก่อน +1

    A master does not make you lost by complexities, but make you more clear by simplicities. Harry is absolutely a real master.

  •  7 ปีที่แล้ว +5

    Really liked this one. I try using LEGO to explain Bits and Bytes, let me know what you think. I do like your "white-boarding"method of explaining.

    • @ranjithvengala2412
      @ranjithvengala2412 6 ปีที่แล้ว

      Danielle Thé me too like this kind of explanation...

  • @Kor1134
    @Kor1134 2 หลายเดือนก่อน

    I've never heard of a half-word, I see 16-bit integers in Linux called characters, and in Windows called words. Windows still denotes 32-bit integers as dwords, as evident in the registry. C++ and C# represent dwords as 32-bit integers

  • @dominicgaraycochea704
    @dominicgaraycochea704 5 ปีที่แล้ว +3

    I like the flow of the lecture.. Subscribed!

  • @anelectrician
    @anelectrician 6 ปีที่แล้ว +2

    A Nibble is 4 bits

  • @arielspalter7425
    @arielspalter7425 5 ปีที่แล้ว +3

    Super clear. Thanks for the video.

  • @kqvanity
    @kqvanity 2 ปีที่แล้ว

    14:43 can be used as a type modifier with other specific data types to add a modification to it

  • @TheTechnicalman
    @TheTechnicalman 4 ปีที่แล้ว

    *Word* consists of 4 letters and 4 bytes ;)

  • @mithunkumarv2321
    @mithunkumarv2321 4 ปีที่แล้ว +7

    1 word = 8/16/32/64/... bits depending on memory word size.
    But here you have mentioned that
    1 word = 32bits
    Is it applicable only for 32 bit machine?

    • @saratmondal2000
      @saratmondal2000 4 ปีที่แล้ว +3

      Yes, in ladder programming 1 word =16 bit and 1 double word=32 bit..

    • @edwardgoldentooth4491
      @edwardgoldentooth4491 ปีที่แล้ว

      @@saratmondal2000 loada nonsense. Obfuscating the issue

    • @KabelkowyJoe
      @KabelkowyJoe ปีที่แล้ว

      This tutorial Is applicable to virtual world of non existing machines it means - WRONG> In x86 terminology/documentation either 32bit and 64, a "word" is 16 bits PERIOD because x86 evolved out of 16-bit 8086. Same on ARM cause it's both 32 and 64 bit also contain 16 bit Thumb mode. In WIndows programing DWORD = 32 bit, QWORD is 64 this tutorial is worthless. I quote stackoverflow now "Changing the meaning of the term as extensions were added would have just been confusing, because Intel still had to document 16-bit mode and everything, and instruction mnemonics like cwd (sign-extend word to dword) bake the terminology into the ISA.x86 word = 2 bytes x86 dword = 4 bytes (double word) x86 qword = 8 bytes (quad word)
      x86 double-quad or xmmword = 16 bytes, e.g. movdqa xmm0, [rdi].
      Also in the cqo mnemonic, oct-word. (Sign-extend RAX into RDX:RAX, e.g. before idiv)
      And then we have fun instruction like punpcklqdq: shuffle together two qwords into a dqword, or pclmulqdq for carry-less multiplication of qwords, producing a dq full result."
      To avoid confusion, SIMD mnemonics tend to be AVX vextracti128 or AVX512 (with optional per-element masking) vextractf64x4 to extract the high 256 bits of a ZMM register." - therefore in REAL life WORD is 16 nobody else uses other definition.

  • @vvvv-pb5qk
    @vvvv-pb5qk 3 ปีที่แล้ว +2

    No spells??? How are we going to defend against the Dark Lord?!!?!?

  • @dwl.sinamurye208
    @dwl.sinamurye208 2 ปีที่แล้ว

    How many bytes in the following sentence
    " Is you, who broke my phone" henry said to betty

  • @Thank_Me_Later
    @Thank_Me_Later 3 ปีที่แล้ว

    DWORD IS 32BIT ?

  • @kefrensmegademo
    @kefrensmegademo 3 ปีที่แล้ว +1

    I think "longer int" data type can be shortcut for "long long int" in C . lol.

  • @infotothecitizens2117
    @infotothecitizens2117 6 ปีที่แล้ว +2

    very interesting

  • @PravinJanjal92
    @PravinJanjal92 7 ปีที่แล้ว +1

    So great!

  • @ArsArcanum
    @ArsArcanum 4 ปีที่แล้ว +2

    can you do your lectures in snake tongue... plz Harry?

  • @jmpbus5086
    @jmpbus5086 2 ปีที่แล้ว

    Thank you, this is a very helpful video.

  • @Killputin777
    @Killputin777 6 ปีที่แล้ว +1

    mukay?

  • @vpetevotov
    @vpetevotov 5 ปีที่แล้ว +1

    Thank you!

  • @amansouravsrivastava2405
    @amansouravsrivastava2405 4 ปีที่แล้ว +1

    A real Harry Porter!!

  • @guliyevshahriyar
    @guliyevshahriyar ปีที่แล้ว

    Thx

  • @drwblkfact7286
    @drwblkfact7286 4 ปีที่แล้ว +1

    Thank you !!!

  • @thepeach12345
    @thepeach12345 3 ปีที่แล้ว

    They want to contact alien life in outer space so they use numbers but did anyone tell the aliens that hey we decided to start from the right to left and in a specific 4 number order this means counting up and not down? What if the aliens had 1 byte deciding it would be I dont know lets say 9 characters like out social security numbers in the US? How would they know what they are looking at? lol.

  • @sakirdag2976
    @sakirdag2976 4 ปีที่แล้ว +1

    thank you

  • @edwardgoldentooth4491
    @edwardgoldentooth4491 ปีที่แล้ว

    1024 bits to a kilo byte. why confuse? loada bollix lol

  • @JaffarHussain
    @JaffarHussain 6 ปีที่แล้ว

    Please solve this questions
    1- What is the computer system components?
    2- Please give a few examples of Application programs, Hardware Computer System
    Components.
    3- Are following attributes true for I/O Structure?
    A. Each device controller has a controller.
    B. Each local buffer is in charge of a particular device type.
    C. CPU moves data from/to main memory to/from local buffers
    D. Each device controller is in charge of a particular device type
    4- What is default unit of computer storage size that contain one of two values, 0 and
    1?
    A. One bit
    B. One word
    C. One byte
    D. Gigabyte
    5- What does the Caching exactly do?
    6- List the Advantages of Multiprocessors systems?
    7- What is Bootstrap program designed for?
    A. bootstrap program is loaded at ROM or reboot
    B. Initializes all firmwareof system
    C. Loads operating system kernel and starts execution
    8- What is the responsibility of Secondary storage, Symmetric Multiprocessing,
    Asymmetric clustering, Timesharing?
    9- Please give the parallel systems types for Computer-System Architecture?
    10- What does the cluster system exactly do?
    11- What is Operating System Definition?
    12- What are the (CPU scheduling, swapping, Virtual memory, job scheduling) are
    used for?
    13- What is the kernel?
    14- How a Modern Computer Works draw and explain?

    • @infinitesimotel
      @infinitesimotel 6 ปีที่แล้ว +1

      Why don't you, try to solve them buddy?

  • @muhammadshaheer1648
    @muhammadshaheer1648 3 ปีที่แล้ว

    How a 32bit Architecture can store (longlong or double) datatype as size of long long or double is 8byte=64bit? I am confused. Can anyone please clear my doubt.

    • @codedbyjordan
      @codedbyjordan 2 ปีที่แล้ว

      32bit means that 2^32 memory addresses are able to be used by the CPU. each memory address stores 1 byte of data in it.

  • @goldfish8196
    @goldfish8196 7 ปีที่แล้ว +1

    THANK YOU!

  • @warlockzone9596
    @warlockzone9596 2 ปีที่แล้ว +1

    Good video! ... Octal is used in networking - IP addresses - IPv4 xxx xxx xxx xxx

    • @Kor1134
      @Kor1134 2 หลายเดือนก่อน

      Those are byte-sized decimals, 192 and 168 are not valid octals since octal can only count from 0 to 7 in one digit. You will never see an 8 or 9 in an octal number. You're thinking of octets, not octals.

  • @jamespottex5197
    @jamespottex5197 4 ปีที่แล้ว

    Good video very helpful for poor class students

  • @treimar
    @treimar 2 ปีที่แล้ว +1

    Video was very helpful eventho in the PLC world a word is 16 bits.

  • @rajadurai1483
    @rajadurai1483 6 ปีที่แล้ว

    super

  • @yank3656
    @yank3656 4 ปีที่แล้ว +1

    thanks for sharing hhp3

  • @rashidmhr
    @rashidmhr 4 ปีที่แล้ว +4

    "Harry Porter and the chamber of bytes"

  • @RATANAGARWALITINFORMER
    @RATANAGARWALITINFORMER 2 ปีที่แล้ว

    thx

  • @mr.latief2728
    @mr.latief2728 ปีที่แล้ว +1

    Sorry correction, 1 Word = 2 byte = 16 bite, double word = 4 byte = 32 bite, Thanks

  • @KabelkowyJoe
    @KabelkowyJoe ปีที่แล้ว

    WORD 32, WAIT WHAT! WHAT?! In what realm!? In Windows and Linux programing world WORD was always 16 bits, Double WORD is 2x 16 bits 32bits, Quad is 64 bits, Double QWORD is 128. This tutorial Is not applicable to REALITY it means - WRONG. Except for bits to octal calculation. In x86 terminology/documentation, a "word" is 16 bits PERIOD because x86 evolved out of 16-bit 8086. In WIndows programing DWORD = 32 bit, even on 64 bit architecture. Same on ARM documentation. In ARM there is Thumb mode 16 bit this is why WORD is ALWAYS in real life reffered to 16 bit.
    I quote stackoverflow now "Changing the meaning of the term as extensions were added would have just been confusing, because Intel still had to document 16-bit mode and everything, and instruction mnemonics like cwd (sign-extend word to dword) bake the terminology into the ISA.x86 word = 2 bytes x86 dword = 4 bytes (double word) x86 qword = 8 bytes (quad word)
    x86 double-quad or xmmword = 16 bytes, e.g. movdqa xmm0, [rdi].
    Also in the cqo mnemonic, oct-word. (Sign-extend RAX into RDX:RAX, e.g. before idiv)
    And then we have fun instruction like punpcklqdq: shuffle together two qwords into a dqword, or pclmulqdq for carry-less multiplication of qwords, producing a dq full result. But beyond that, SIMD mnemonics tend to be AVX vextracti128 or AVX512 (with optional per-element masking) vextractf64x4 to extract the high 256 bits of a ZMM register." - even AVX instruction sets uses 32,64bit as basic building blocks.

    • @samuca101
      @samuca101 8 หลายเดือนก่อน

      Actually, I think the most important thing is to understand the concept. If you grasp it, you'll know that 'double' will always be twice the size of the given 'word,' depending on the system and all these stuff.
      But i agree with u, would be better if he used the most common terminology, so it would be less confusing when you start programming...