Commit ffe3de49 authored by Simon Marlow's avatar Simon Marlow
Browse files

add paragraph about alignment

parent fcf9b591
......@@ -25,6 +25,13 @@ further access to the memory area referenced by a pointer passed to
\haddockid{realloc}, \haddockid{reallocBytes}, or \haddockid{free} entails undefined
behaviour.
\par
All storage allocated by functions that allocate based on a \emph{size in bytes}
must be sufficiently aligned for any of the basic foreign types
that fits into the newly allocated storage. All storage allocated by
functions that allocate based on a specific type must be sufficiently
aligned for that type. Array allocation routines need to obey the same
alignment constraints for each array element.
\par
\section{Memory allocation
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment