![]() This allows programs to target (modern) Windows in general, among other platforms. _WIN32 is defined (as the integer 1) for both Win32 and Win64 targets. Win64 is an "LLP64" data model: long long and pointers are 64-bit, while int (and long) are still 32-bit. You could use unsigned int in place of size_t, although it is not portable. In Win32's "ILP32" data model, int (and long) and pointers are 32-bit. In contrast, in the segmented Large memory model of DOS, pointers were 32-bit, while the largest object was 64KB. ![]() (These modern Windows memory models are flat. In Win32 and Win64, this is the same size as a pointer. Size_t is defined as an unsigned integral type, passed to malloc and the result of sizeof, with enough bits to represent the size of the largest possible object in the memory/data model.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |