Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
remcob
on Dec 6, 2017
|
parent
|
context
|
favorite
| on:
Writing a C Compiler, Part 2
The explanation for bitwise complement ignores the word-size which matters a lot here. For example ~4 = 251 in uint8, not 3 like in the example.
norax
on Dec 14, 2017
|
next
[–]
This is a good point, thank you for bringing it up! I added a footnote about it:
https://norasandler.com/2017/12/05/Write-a-Compiler-2.html#f...
boomlinde
on Dec 7, 2017
|
prev
[–]
I don't think it is fair to say that it is ignored, rather it assumes three bits.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: