Cross-platform

A cross-platform (or platform independent) programming language, software application or hardware device works on more than one system platform (e.g. Unix, Windows and Macintosh). Examples of cross-platform languages are C, C++, Java, JavaScript, Perl, Python, Tcl, Erlang and REALbasic.

Most computer languages in their pure sense are cross-platform - as a high-level, human readable way to instruct a CPU there is no need to strongly depend on any particular operating system. However, to do things such as create a graphical user interface (GUI) using the system widget set a program links to libraries, which may be particular to the developer's system. Although C++ itself is cross platform, a program written in for Windows using the Win32 API would normally not compile on a Unix computer. There are often also differences in how compiler writers interpret a language specification; in this case a program may require some attention before it be built on multiple systems.

Some programming languages such as Java were designed from the start to work on any platform that has a suitable virtual machine. Languages which use bytecode as the compiled representation or which interpret scripts directly do not need to be compiled for any particular operating system. Native libraries of the operating system are not linked to by the distributed code, rather the run time environment reimplements much of the same functionality or provides a common bridge to similar functions on different systems. It is possible to create Java programs which only run on a particular system, either by using JNI or by running a bytecode-to-machinecode compiler; this is not necessary for most tasks.

Providing and testing compiled versions of a program for every OS and CPU is practically impossible, so projects which are open source or otherwise allow the user to compile their own object code could be said to be more cross-platform. Likewise, languages which are interpreted or otherwise require a virtual machine are more cross-platform where individuals can compile their own. Hotspot, Sun's Java virtual machine, is provided only as compiled binaries, with support for several, but not all, platforms. For example, Sun only supports GNU/Linux on the i386 architecture - anyone running Linux on PowerPC or SPARC computers cannot use Java without compiling to native machinecode or using third party tools.

Many APIs are platform specific. OpenGL can be said to be cross-platform because it is not tied to any particular operating system, CPU architecture or brand of graphics hardware. Platform specific APIs may be recreated on other systems as a compatibility layer, such as the WINE library, which allows programs requiring windows libraries to be used on UNIX.

There are also cross-platform extensions and middleware for many programming languages that enable programmers to compile/run the same source code with minimal fixes on different platforms. Examples include Qt and wxWidgets.

Cross-platform and the Web

Web applications are normally usable from any platform with a web browser, regardless of the language they are written in. This is because the code is run on a server and comunication with the user agent is done only through HTTP and (X)HTML.

Web pages are sometimes said to be cross-platform or cross-browser if they can be used from any browser, or any recent browser. As well as the author producing valid code, this often requires a working knowledge of the quirks that loosely-conforming browsers, such as Internet Explorer, exhibit in their interpretation of web standards.

A web page containing content not renderable by all browsers such as Macromedia Flash presentations may still be cross platform if allowances are made for people without the special plugins. For example, images to be shown in place of rich content or a downloadable MPEG-2 version of animated material.

Cross-platform web accessibility requires as much an undertanding of users as of technical standards if a page is to be accessible on platforms as varied as screen readers, Braile-based web browsers, and small devices like mobile phones and PDAs.

es:Transplataforma fr:Multiplates-formes ru:Кросcплатформенное программное обеспечение

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools