[Scummvm-devel] Re: Cross Platform Devel

Max Horn max at quendi.de
Sun May 2 13:44:02 CEST 2004


Am 02.05.2004 um 22:04 schrieb Daniel Torres Bonatto:

> Hi,
>
>
Hi Daniel.

>
> I am developing a VM and today this software works just on linux. One 
> of my objectives is to make the VM code cross plataform. My question 
> is, what was you strategy to port your VM to other plataforms?
>
> Tanks,
>
> Daniel.
> http://sourceforge.net/projects/holo/

First off, I don't know why you mailed me in particular; I am CCing 
this mail to scummvm-devel, so that others may respond to it.

Personally I don't have to say much in this regard: first off, it 
wasn't me who originally developed ScummVM, so i can't really speak 
about how the portability effort started out. Other than that, I'd say 
these are some important things to stick by:

* Use only portable APIs: Standard C library, Standard C++ library; 
SDL; etc.; do not use e.g. Windows or Linux specific API. If you have 
to, wrap it by an abstraction layer (e.g. MIDI output code)

* Use a portable language, available on all your potential target 
systems

* Be careful when you make assumptions about how things work: often 
they work differently on different systems. E.g. little endian vs. big 
endian


There are many more things to say, however, there are already plenty of 
web sites out there which provide useful hints on this subject; I 
recommend you use google to search for them.


Bye,

Max





More information about the Scummvm-devel mailing list