Cross-platform support middleware

A cross-platform support middleware (CPSM) is a software abstraction layer that guarantees the existence, and correct implementation, of a set of services on top a set of platforms.[1]

Abstraction method

The abstraction method in the CPSM development is the method used to compile the concrete source code for a given platform without compromising the abstract interfaces provided. The most commonly used abstraction methods in CPSM development are: conditional compilation and directory separation of sources.

The first method consists in embedding preprocessor instructions in the source code to conditionally select the source subtree compatible with a given platform.

The second method takes advantage of the filesystem organization to divide the source code in different folders, one for each incompatible platform. Thus delegating the selection problem to the build system.

Some distributions like MSYS and Cygwin may help build the cross-platform code in a Unix-like environment even on Microsoft Windows. Both distributions provide a decent version of GNU Make that can direct the build process in a cross-platform fashion.

gollark: I don't exactly go around specifically trying to pick CIA-funded stuff to watch, so I am not sure what the point of this is.
gollark: > CIA funded the uk animal farm film... great? I've never watched it.
gollark: Sometimes I wonder if internet arguments about economic systems have any chance of leading to useful results, or whether they'll just be endless exchanges of "gotchas".
gollark: But yes, I'm not in the US and I watch... fictional TV stuff, mostly, for entertainment?
gollark: I mean, I do.

See also

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.