Re:C Portability Lessons from Weird Machines
by leetcrew on Monday February 21, 2022 @10:08PM
(#30423605)
int is the same width as long in msvc though. if the width of an integral type is remotely important to the correctness of your program, you should really be using stdint.h types to document that intention, regardless of whether you care about portability.
A program with 32bit longs will probably work fine most of the time, and save memory while doing it (which can matter for cache hits/misses).