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. Advertising

  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. Advertising

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,040
    =?Utf-8?B?UmVzaG1hIFByYWJodQ==?=
    Jan 21, 2005
  2. Matt
    Replies:
    2
    Views:
    648
    marcus
    Nov 15, 2004
  3. Replies:
    4
    Views:
    5,669
    Michael Borgwardt
    Dec 10, 2004
  4. Jonathan Mcdougall

    Re: clrscr Compiler Independent functions

    Jonathan Mcdougall, Nov 23, 2004, in forum: C++
    Replies:
    0
    Views:
    353
    Jonathan Mcdougall
    Nov 23, 2004
  5. Dfschweiss
    Replies:
    1
    Views:
    394
    Michiel Salters
    Dec 1, 2004
Loading...

Share This Page