Difference between revisions of "Portable"

From Computer History Wiki
Jump to: navigation, search
m (Proper cat, +links)
(OS portable as well as machine)
Line 1: Line 1:
'''Portable''' [[software]] is that which either can, or is designed to be, run on different kinds of computers. It cannot be written in [[assembly language]] (which is inherently specific to one type of machine), but had to be written in a higher-level [[programming language]].
+
'''Portable''' [[software]] is that which either can, or is designed to be, run on different kinds of computers or [[operating system]]s (or both). For the former, it cannot be written in [[assembly language]] (which is inherently specific to one type of machine), but had to be written in a higher-level [[programming language]].
  
Initially [[application]]s written in [[FORTRAN]] or [[COBOL]] were some of the first examples of portable code. With the advent of [[C programming language|C]], it became possible to have portable [[operating system]]s, [[UNIX]] being the first.  
+
Initially [[application]]s written in [[FORTRAN]] or [[COBOL]] were some of the first examples of portable code. With the advent of [[C programming language|C]], it became possible to have portable operating systems, [[UNIX]] being the first.  
  
 
(Other OS's had been written in higher-level languages before that, such as [[Multics]], but for a variety of reasons they were not portable.)
 
(Other OS's had been written in higher-level languages before that, such as [[Multics]], but for a variety of reasons they were not portable.)

Revision as of 21:20, 22 October 2018

Portable software is that which either can, or is designed to be, run on different kinds of computers or operating systems (or both). For the former, it cannot be written in assembly language (which is inherently specific to one type of machine), but had to be written in a higher-level programming language.

Initially applications written in FORTRAN or COBOL were some of the first examples of portable code. With the advent of C, it became possible to have portable operating systems, UNIX being the first.

(Other OS's had been written in higher-level languages before that, such as Multics, but for a variety of reasons they were not portable.)

Almost all software is now portable, although care has to be taken to make sure it does not trip over things which can make porting non-trivial (e.g. writing code which depends on a specific word length).