Add multilingual language and systems learning tracks
This commit is contained in:
1 parent
07338189fc
commit
d8d1c40118
844 files changed
+6061
No files matched your search
@@ -0,0 +1,5 @@
|
||||
<!doctype html><html lang="en"><meta charset="utf-8"><title>Endianness is a byte-order rule</title><h1>Endianness is a byte-order rule</h1><p>15-minute session: read for 3 minutes, trace for 3, experiment for 7, and complete the check for 2. Spend longer whenever you need.</p><p>The number 0x1234 can be stored as bytes 34 12 in little-endian order or 12 34 in big-endian order. The number is unchanged; the representation changes. Run both conversions and decode them back. A file or network protocol must specify byte order instead of copying a host struct blindly. C struct padding and alignment are separate concerns.</p><pre><code class="language-python">value=0x1234
|
||||
print(value.to_bytes(2,"little").hex())
|
||||
print(value.to_bytes(2,"big").hex())
|
||||
</code></pre><p><strong>Expected result:</strong> <code>3412
|
||||
1234</code></p><h3>Practice and evidence</h3><p>Keep three notes: your prediction, the actual result, and why they match or differ. The completion check grades understanding; the practice task builds skill.</p><p><a href="https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html">Language reference: www.intel.com</a></p><p><a href="https://developer.arm.com/Architectures/Learn%20the%20Architecture">Language reference: developer.arm.com</a></p><p><a href="https://docs.riscv.org/">Language reference: docs.riscv.org</a></p></html>
|
||||
@@ -0,0 +1,3 @@
|
||||
value=0x1234
|
||||
print(value.to_bytes(2,"little").hex())
|
||||
print(value.to_bytes(2,"big").hex())
|
||||
Reference in new issue
Block a user