On Jul 4, 2012, at 9:36 PM, Nathan Day wrote: > If you have an array of 32bit ints on a 64bit machine, are the 32bit ints > expanded into 64bit ints when copied into the cache...
No, absolutely not. A cache line maps to a contiguous section of RAM of the same size. To do otherwise would add huge complexity--and, actually, would probably be impossible. How is the CPU to know before the memory is used, what is 32-bit values vs what is 64 (16, 8)? What happens when memory is accessed in one line of code as 2 32-bit values, and as 1 64-bit value in the next line. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com