Given few embedded C applications that use threads, files, network protocols and other such specificities of the OS and the compiler libaries, I am required to make them OS independent (atleast wrt popular OSes like Windows and Linux). I am thinking of using POCO, as POCO promises to be a cross-platform library, and would make the applications easily portable (in the best case, just a re-compile).
One possibility is to "migrate" the OS-specific calls in the C applications to equivalent POCO library calls. Without really re-designing the C code, is this approach feasible? Ofcourse, this would mean instantiation of necessary objects at appropriate place in the C code, maybe affecting the 'understandability' of the C code... Has anybody tried similar approach? What could be the potential pitfalls of this?





