An effective strategy for porting C++ applications on cell