Y
Hacker News
new
|
ask
|
show
|
jobs
by
jamesfinlayson
1686 days ago
I think the size can vary by compiler rather than just by architecture.
1 comments
dataflow
1686 days ago
Yeah it can but in practice systems have a canonical model in their official headers.
link
gpderetta
1686 days ago
And yet msvc and gcc disagree on sizeof(long) on AMD64.
Edit: but of course you meant OS with system, not hardware architecture :)
link
dataflow
1686 days ago
MSVC on...
Linux
AMD64?
link
gpderetta
1686 days ago
:) to be fair I did note my misunderstanding in my edit.
link