Cross-platform Support Middleware - Abstraction Method

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.

Read more about this topic:  Cross-platform Support Middleware

Famous quotes containing the words abstraction and/or method:

    There’s no such thing as socialism pure
    Except as an abstraction of the mind.
    There’s only democratic socialism,
    Monarchic socialism, oligarchic
    The last being what they seem to have in Russia.
    Robert Frost (1874–1963)

    Steady labor with the hands, which engrosses the attention also, is unquestionably the best method of removing palaver and sentimentality out of one’s style, both of speaking and writing.
    Henry David Thoreau (1817–1862)