Tiedosto:32bit-Endianess.svg

Wikipediasta
Siirry navigaatioon Siirry hakuun

Alkuperäinen tiedosto(SVG-tiedosto; oletustarkkuus 1 000 × 500 kuvapistettä; tiedostokoko 5 KiB)

Näytä tämä kuva kielellä .

Yhteenveto

Kuvaus

tavujärjestys (Q339338):

Deutsch: Ein 32-Bit Integer (0A0B0C0D16, 16849614110, 0000 1010 0000 1011 0000 1100 0000 11012) als vier Bytes im Speicher abgebildet in Big- und Little-endian Byte-Reihenfolge.

Diese beiden Diagramme zeigen, wie zwei Computer mit unterschiedlicher Endianness eine 32-Bit-Ganzzahl (vier Byte) mit dem Wert 0x0A0B0C0D speichern. In beiden Fällen ist die ganze Zahl in vier Bytes unterteilt, 0x0A, 0x0B, 0x0C und 0x0D, und die Bytes werden in vier aufeinanderfolgenden Byte-Speicherplätzen gespeichert, beginnend mit dem Speicherplatz mit der Adresse a, dann a + 1, a + 2 und a + 3. Der Unterschied zwischen Big- und Little-Endian ist die Reihenfolge der vier Bytes der gespeicherten Ganzzahl.

Das erste Diagramm zeigt einen Computer, der Little-Endian verwendet. Er beginnt die Speicherung der ganzen Zahl mit dem niedrigstwertigen Byte, 0x0D, an der Adresse a und endet mit dem höchstwertigen Byte, 0x0A, an der Adresse a + 3.

Das zweite Diagramm zeigt einen Computer, der Big-Endian verwendet. Hier beginnt die Speicherung der Ganzzahl mit dem höchstwertigen Byte, 0x0A, an der Adresse a und endet mit dem niedrigstwertigen Byte, 0x0D, an der Adresse a + 3.

Da jeder Computer die gleiche Endianness zum Speichern und Abrufen der Ganzzahl verwendet, sind die Ergebnisse für beide Computer gleich. Probleme können auftreten, wenn der Speicher durch Bytes statt durch ganze Zahlen adressiert wird oder wenn Speicherinhalte zwischen Computern mit unterschiedlicher Endianness übertragen werden.
English: 32-Bit Integer (0A0B0C0D16, 16849614110, 0000 1010 0000 1011 0000 1100 0000 11012) arraged in memory in big- and little-endian byte order.

These two diagrams show how two computers using different endianness store a 32-bit (four byte) integer with the value of 0x0A0B0C0D. In both cases, the integer is broken into four bytes, 0x0A, 0x0B, 0x0C, and 0x0D, and the bytes are stored in four sequential byte locations in memory, starting with the memory location with address a, then a + 1, a + 2, and a + 3. The difference between big- and little-endian is the order of the four bytes of the integer being stored.

The first diagram shows a computer using little-endian. This starts the storing of the integer with the least-significant byte, 0x0D, at address a, and ends with the most-significant byte, 0x0A, at address a + 3.

The second diagram shows a computer using big-endian. This starts the storing of the integer with the most-significant byte, 0x0A, at address a, and ends with the least-significant byte, 0x0D, at address a + 3.

Since each computer uses its same endianness to both store and retrieve the integer, the results will be the same for both computers. Issues may arise when memory is addressed by bytes instead of integers, or when memory contents are transmitted between computers with different endianness.
Magyar: Hogyan tárolódik egy 32-bites integer, miután a regiszterekből a memóriába kerül egy little/big-endian típusú számítógépes rendszeren.
Päiväys
Lähde Oma teos
Tekijä Aeroid
Muut versiot

Tämä tiedosto on johdettu tiedostosta:

SVG kehittely
InfoField
 
Tämän SVG-tiedoston lähdekoodi on validoitu.
 
Tämä vektorikuva luotiin käyttäen apuna ohjelmaa tekstimuokkaimella.
 
 This diagram is translated using SVG switch elements: all translations are stored in the same file.

Lisenssi

Minä, tämän teoksen tekijänoikeuksien haltija, julkaisen täten tämän teoksen seuraavalla lisenssillä:
w:fi:Creative Commons
nimeäminen jaa samoin
Tämä tiedosto on lisensoitu Creative Commons Nimeä-JaaSamoin 4.0 Kansainvälinen -lisenssillä.
Voit:
  • jakaa – kopioida, levittää ja esittää teosta
  • remiksata – valmistaa muutettuja teoksia
Seuraavilla ehdoilla:
  • nimeäminen – Sinun on mainittava lähde asianmukaisesti, tarjottava linkki lisenssiin sekä merkittävä, mikäli olet tehnyt muutoksia. Voit tehdä yllä olevan millä tahansa kohtuullisella tavalla, mutta et siten, että annat ymmärtää lisenssinantajan suosittelevan sinua tai teoksen käyttöäsi.
  • jaa samoin – Jos muutat tai perustat tähän työhön, voit jakaa tuloksena syntyvää työtä vain tällä tai tämän kaltaisella lisenssillä.

Kuvatekstit

Lisää yhden rivin pituinen kuvaus tästä tiedostosta
32-Bit Integer arraged in memory in big- and little-endian byte order

Kohteet, joita tässä tiedostossa esitetään

esittää

18. syyskuu 2023

Tiedoston historia

Päiväystä napsauttamalla näet, millainen tiedosto oli kyseisellä hetkellä.

PäiväysPienoiskuvaKokoKäyttäjäKommentti
nykyinen19. syyskuuta 2023 kello 15.30Pienoiskuva 19. syyskuuta 2023 kello 15.30 tallennetusta versiosta1 000 × 500 (5 KiB)Aeroid+pt
19. syyskuuta 2023 kello 15.29Pienoiskuva 19. syyskuuta 2023 kello 15.29 tallennetusta versiosta1 000 × 500 (5 KiB)Aeroid+pt
19. syyskuuta 2023 kello 12.21Pienoiskuva 19. syyskuuta 2023 kello 12.21 tallennetusta versiosta1 000 × 500 (5 KiB)AeroidMulti-lang switch en, de, fr, hu, ja
19. syyskuuta 2023 kello 11.35Pienoiskuva 19. syyskuuta 2023 kello 11.35 tallennetusta versiosta1 000 × 500 (4 KiB)AeroidArrows, de-duplication
18. syyskuuta 2023 kello 19.34Pienoiskuva 18. syyskuuta 2023 kello 19.34 tallennetusta versiosta1 000 × 500 (5 KiB)Aeroidtext-anchor=end workaround
18. syyskuuta 2023 kello 19.33Pienoiskuva 18. syyskuuta 2023 kello 19.33 tallennetusta versiosta1 000 × 500 (5 KiB)Aeroidtext-anchor=end workaround
18. syyskuuta 2023 kello 19.32Pienoiskuva 18. syyskuuta 2023 kello 19.32 tallennetusta versiosta1 000 × 500 (5 KiB)Aeroidtext-anchor=end workaround
18. syyskuuta 2023 kello 19.30Pienoiskuva 18. syyskuuta 2023 kello 19.30 tallennetusta versiosta1 000 × 500 (5 KiB)Aeroidtspan workaround
18. syyskuuta 2023 kello 19.24Pienoiskuva 18. syyskuuta 2023 kello 19.24 tallennetusta versiosta1 000 × 500 (5 KiB)AeroidUploaded own work with UploadWizard

Seuraava sivu käyttää tätä tiedostoa:

Tiedoston järjestelmänlaajuinen käyttö

Seuraavat muut wikit käyttävät tätä tiedostoa:

Metatieto