Hi -
As far as *how* to do it, most C/C++ compilers (including gcc) permit in-line assembly code. The easiest way is to just try it and see if the OS lets you get away with modifying that particular flag. The worst that could happen is you might crash your system and have to reboot ;-)
As far as misalignment being a "major problem", I think it's probably actually among the *least* of your worries. I quote from the AMD Porting FAQ (listed below:
Quote:
What are the memory alignment requirements for code and data in each of these
operating systems?
There are no alignment requirements. x86 architecture has never had any alignment
requirements and the 64-bit extensions have not added any. However, the ABI for
64-bit software has been designed to improve performance by striving for natural
alignment of most memory operands...
|
The article goes on to say that the biggest impact (if any) would be on performance.
Finally, here are some good references (most from the AMD site itself) that might give you some additional information:
-
http://www.devx.com/amd/Article/16520
-
http://www.devx.com/amd/Door/21585
-
http://www-128.ibm.com/developerwork.../l-port64.html
-
http://www.amd.com/us-en/assets/cont...orting_FAQ.pdf
'Hope that helps .. PSM