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

Yeah it can but in practice systems have a canonical model in their official headers.
And yet msvc and gcc disagree on sizeof(long) on AMD64.

Edit: but of course you meant OS with system, not hardware architecture :)

MSVC on... Linux AMD64?
:) to be fair I did note my misunderstanding in my edit.