There were a few bugs in the code examples that have been fixed.
- Global pointer needs to be written with
norelax
option set. (See quickref: Global Pointer) - For C++ the argument order to
std::copy()
was incorrect. (it matchedmemcpy()
… target, source)