Like Tree1Likes
  • 1 Post By brewbuck

Machine dependent and implementation defined

This is a discussion on Machine dependent and implementation defined within the C Programming forums, part of the General Programming Boards category; Is there any difference between these two terms....

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    28

    Machine dependent and implementation defined

    Is there any difference between these two terms.

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    1) Spelling
    2) Length
    3) Machine dependent means "locked to a spacific kind of computer"
    4) Implementation defined means "defined in this specific case" ... but not necessarily #3

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,160
    Implementation-defined means it does something consistent, but what that is is not specified in the standard. As opposed to undefined, where it might be inconsistent. Machine-dependent things are implementation-defined, example: calling conventions. Implementation-defined things are not necessarily machine-dependent, example: gcc language extensions.
    stahta01 likes this.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    2,012
    Machine dependent behavior is implementation defined behavior that is constrained by the target architecture (e.i. machine), as opposed to arbitrarily chosen by the compiler.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. time dependent program
    By shubham in forum C Programming
    Replies: 6
    Last Post: 06-17-2011, 08:31 AM
  2. C 89 Implementation-Defined Behavior?
    By billhavens in forum C Programming
    Replies: 17
    Last Post: 04-18-2010, 04:37 PM
  3. non-dependent name in template function
    By George2 in forum C++ Programming
    Replies: 7
    Last Post: 03-11-2008, 06:07 AM
  4. Replies: 4
    Last Post: 01-18-2008, 06:05 PM
  5. IDEA: A Slot Machine (aka a fruit machine)
    By ygfperson in forum Contests Board
    Replies: 0
    Last Post: 08-12-2002, 11:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21