Thread: Platform Independent

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    1

    Question Platform Independent

    I am thinking about learning C. But I don't know two things....

    Should I forget about C and go to C++, is C still being used?

    And...

    Is C and C++ platform independent? Does it run on any OS?

    Thanks,
    Michael R. DeLorenzo

  2. #2
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    C and C++ do run on any O/S, but there are platform dependent. You can write platform independent C/C++ code though using conditional compilation, but you can't create platform independent binaries (executables), because C/C++ code has to be compiled with the platform-specific compiler.

    Hope this helped.
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

  3. #3
    Registered User pinko_liberal's Avatar
    Join Date
    Oct 2001
    Posts
    284
    http://www.winehq.com/
    this might you

  4. #4
    Registered User pinko_liberal's Avatar
    Join Date
    Oct 2001
    Posts
    284
    sorry for the typo I meant
    this might interest you

  5. #5
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Should I forget about C and go to C++, is C still being used?
    Your operating system was written in C, not C++. Also, C is used widely in C++ especially when dealing with char arrays. Much of the encasulated classes were written in a combination of C and C++. Win32, the system API is C.

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    25
    look'n for a platform independent language to generate binary files that can run on any OS without even requiring a recompilation???

    Itz hi-time for ya to check out my signature**
    Java ROCKZZZZ....
    java.sun.com

    Write once, run everywhere!!!!!

  7. #7
    Registered User pinko_liberal's Avatar
    Join Date
    Oct 2001
    Posts
    284
    Originally posted by Siagal
    look'n for a platform independent language to generate binary files that can run on any OS without even requiring a recompilation???

    Itz hi-time for ya to check out my signature**
    Run everywhere , but run slow .

  8. #8
    Registered User
    Join Date
    Oct 2001
    Posts
    25

    JAVA POWER!!

    >>Run everywhere , but run slow .

    ???

    oh, u might be using some resource sucking IDEz......quit and compile from console, u'll see the POWER of Java!!
    Java ROCKZZZZ....
    java.sun.com

    Write once, run everywhere!!!!!

  9. #9
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Java is not slow. Besides, computers waste huge amounts of CPU cycles now, they're getting faster and cheaper. Speed is a non-issue for the most part.

    Quzah.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Platform independent paths
    By zacs7 in forum C Programming
    Replies: 6
    Last Post: 11-22-2008, 09:51 AM
  2. Replies: 9
    Last Post: 12-19-2006, 04:23 PM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Platform independent C code
    By Roaring_Tiger in forum C Programming
    Replies: 2
    Last Post: 03-04-2005, 01:32 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM