Packed Structures?

Henry Spencer henry at utzoo.UUCP
Wed Oct 5 08:57:41 AEST 1983


Actually, all holes *don't* necessarily go away if you were to declare
something "packed" to a 16032 compiler that understood the notion.
The 16032 cannot guarantee to do copy-on-write memory management properly
unless things are aligned.  (The problem is that an unaligned data item
which crosses a page boundary from a read-write page to a read-only page
may get its first part stomped before the MMU realizes that the second
part is not writeable.)
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list