platform independent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Viji nellaiappan
    New Member
    • Jan 2009
    • 23

    platform independent

    I think operating system routines can be developed using C and game applications can also be developed... What kind of language is C ? Is it platform independent (portable) ?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by Viji nellaiappan
    I think operating system routines can be developed using C and game applications can also be developed... What kind of language is C ? Is it platform independent (portable) ?
    Old sods like me call it a 'structured assembly language', i.e. C can be quite close to the bare metal. If you don't use platform dependent libraries C source code can be quite portable; your own code shouldn't assume anything about the platform its compiled version is running on.

    C is quite a low level structured programming language and it has survived since the early '70s in the last century.

    kind regards,

    Jos

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      C is a procedural language (as opposed to an object-oriented language like C++). The C Standard is very explicit about which features are undefined, implementation-defined, or locale-specific. Stay away from those and you can write very portable code.

      Comment

      Working...