Breaking portability is usually a matter of technical necessity. Define the system headroom and results you need for a successful port before you start porting. Implicit coding assumptions are ...