View Full Version : Usage of C language in Symbian OS


sinu
23-02-2005, 02:47 PM
Hi all,

If I have SW code already available in 'C' for a particular Mobile developed on a different OS, what are the options or procedures available for porting it on to Symbian OS which is predominantly on 'C++'.
No major requirements should be done on the existing C code.

Is it possible? If so how?

Thanks in Advance,
Sinu

N/A
23-02-2005, 02:59 PM
Certainly possible, but it depends on the code.

Pure [ANSI] C using more or less standard C library calls should work pretty OK. But if the code has operating system/environment dependencies through expecting certain operating system behaviour (in process or thread management, memory management, whatever), availability of specific user interface functions/libraries, file system peculiarities or existence/availability of specific system services or external programs, then a porting or rewriting effort may be needed.

And, of course, even absent of original system/platform dependencies, the developer may still have written the code without portability in mind, for a particular compiler or environment (e.g., a lot of code written without portability in mind for 16-bit processor environment may easily fail on a 32-bit system).

Even knowing what kind of device/system the code was originally written for, might help somewhat more (or even if it is just an utility library or a whole application with a user interface and all), but without knowing that and without seeing the sources it is hard (or impossible) to say much more than that.