Generally,a cosmic and complex parallel applied software is very costly.But it is not satisfactory in efficiency and in adapting itself to environment change of hardware,so it has become an object most programmer hanker for how to write a program of high efficiency and not depending on hardware so as to keep up its value.Starting from HPC's problem scale,synchronization waiting,message passing latency,data decomposition and localization and instruction-levelparallelization,this paper expounded the main factors affecting program efficiency and portability and presented some rules or points for attention,by means of instances and experiment analysis.