Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dataflow
on Nov 2, 2021
|
parent
|
context
|
favorite
| on:
Core scheduling lands in Linux 5.14
Oh I didn't realize its size varies on x86 and x64... I thought it's always 64-bit under compilers that target Linux! Today I learned...
tomsmeding
on Nov 2, 2021
|
next
[–]
There is a difference between 'long' and 'long long'. I believe the latter
is
always 64 bits on Linux.
dataflow
on Nov 2, 2021
|
parent
|
next
[–]
I'm indeed aware of that one :-)
jamesfinlayson
on Nov 2, 2021
|
prev
[–]
I think the size can vary by compiler rather than just by architecture.
dataflow
on Nov 2, 2021
|
parent
[–]
Yeah it can but in practice systems have a canonical model in their official headers.
gpderetta
on Nov 2, 2021
|
root
|
parent
[–]
And yet msvc and gcc disagree on sizeof(long) on AMD64.
Edit: but of course you meant OS with system, not hardware architecture :)
dataflow
on Nov 2, 2021
|
root
|
parent
[–]
MSVC on...
Linux
AMD64?
gpderetta
on Nov 2, 2021
|
root
|
parent
[–]
:) to be fair I did note my misunderstanding in my edit.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: