Compiler == Machine-independent?

Discussion in 'C Programming' started by lovecreatesbea...@gmail.com, Feb 14, 2007.

  1. Guest

    Does the ability of making a C compiler on a particular machine mean
    the machine-independent of C computer language on this kind of machine?
     
    , Feb 14, 2007
    #1
    1. Advertisements

  2. In article <>,
    <> wrote:
    >Does the ability of making a C compiler on a particular machine mean
    >the machine-independent of C computer language on this kind of machine?


    No. There are quite a number of parts of C that are implementation
    specified. To take one example, the behaviour of right-shifting
    a negative value is up to the implementation; another example
    is that the size (and range) of 'int' can vary between machines.

    Experienced programmers know where the dirty laundry is, and
    write so that their program will work on all systems their code
    is likely to be ported to. (Sometimes it just isn't worth
    writing 100% portable code, if the chance that the code will
    be taken to a very unusual machine is essentially none.)

    --
    "It is important to remember that when it comes to law, computers
    never make copies, only human beings make copies. Computers are given
    commands, not permission. Only people can be given permission."
    -- Brad Templeton
     
    Walter Roberson, Feb 14, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UmVzaG1hIFByYWJodQ==?=

    Auto-attach to process '[1084] aspnet_wp.exe' on machine <Machine

    =?Utf-8?B?UmVzaG1hIFByYWJodQ==?=, Jan 21, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    1,245
    =?Utf-8?B?UmVzaG1hIFByYWJodQ==?=
    Jan 21, 2005
  2. UJ
    Replies:
    2
    Views:
    605
  3. Matt
    Replies:
    2
    Views:
    771
    marcus
    Nov 15, 2004
  4. Replies:
    4
    Views:
    7,442
    Michael Borgwardt
    Dec 10, 2004
  5. Dfschweiss
    Replies:
    1
    Views:
    503
    Michiel Salters
    Dec 1, 2004
  6. Nico Grubert
    Replies:
    1
    Views:
    2,845
    Markus Rosenstihl
    Sep 21, 2005
  7. UJ
    Replies:
    2
    Views:
    641
  8. johnny
    Replies:
    5
    Views:
    823
    Antonio Cuni
    Jul 11, 2007
Loading...