---
+ Post New Thread
Results 1 to 10 of 10
  1. #1
    Junior Member level 1
    Points: 1,090, Level: 7

    Join Date
    Apr 2007
    Posts
    15
    Helped
    0 / 0
    Points
    1,090
    Level
    7

    difference between ansi c and embedded c

    hi,
    can any one tell me what is the difference between C and EMBEDDED C.

  2. #2
    Newbie level 4
    Points: 1,257, Level: 8

    Join Date
    Feb 2006
    Posts
    5
    Helped
    1 / 1
    Points
    1,257
    Level
    8

    embbeded c

    Hi, there are differences between C and embedded C, some of them are:
    C is for desktop computers, embedded C usually is for microcontroller based applications.
    C use the resources of desktop computers (memory, OS, etc)
    Embbeded C use only limited resources available in chip (limited RAM, ROM, ports, etc).
    Embbed C could be a subset of C.

    You can see the book from Tom Schults, Embedded C.



    •   Alt8th May 2007, 16:55

      advertising

        
       

  3. #3
    Member level 5
    Points: 1,637, Level: 9

    Join Date
    Aug 2006
    Posts
    81
    Helped
    4 / 4
    Points
    1,637
    Level
    9

    difference c and embedded c

    I think u are aware about C very much, embedded C is also same with some diffrent environment. Here u have to take care about memory. In embedded environment memory is available very less than desktop computers, where u can't bother about memory. In your program u have to see that in an instant of time your program is not using more than available memory of the microcontroller. If it is trying to use then the program 'll crash.
    An embedded system is an application that contains at least one programmable
    computer (typically in the form of a microcontroller, a microprocessor or digital
    signal processor chip) and which is used by individuals who are, in the main,
    unaware that the system is computer-based.
    Beside this, also timing constraint also a mesure though optinal but mostly wanted in embedded C. You have to check the code in real time environment with the help of emulators and debuggers.



    •   Alt9th May 2007, 05:38

      advertising

        
       

  4. #4
    Full Member level 2
    Points: 1,523, Level: 8

    Join Date
    Jan 2007
    Posts
    119
    Helped
    15 / 15
    Points
    1,523
    Level
    8

    difference between c and embedded c pdf

    hi

    let me get the platform dependence clear.

    in usual C what we develop would have headers like stdio.h, using which the system yeilds a output file feasible to that particular OS(windows, linux etc)

    now when it comes to embedded C, everythings same except, u'll get a output file which could directly loaded in to the controller and requirement for a supporting platform (OS, which abstracts the hardware and provides a virtual environment) is eliminated.

    next comes embedded OS which is simple enough, if u've understood the above points



    •   Alt9th May 2007, 20:13

      advertising

        
       

  5. #5
    Newbie level 5
    Points: 1,222, Level: 7

    Join Date
    Dec 2006
    Posts
    9
    Helped
    1 / 1
    Points
    1,222
    Level
    7

    difference between ansic and embedded c

    Quote Originally Posted by satyagandu
    hi,
    can any one tell me what is the difference between C and EMBEDDED C.
    Something important that the other posters haven't mentioned is that embedded C can be non-ANSI for some micros (e.g., PICs). This is because the instruction set of the micro is designed more for ASM programming, and not all C functions are supported. So if you're programming C on a micro and it won't work right, take this into consideration. And if you're a hobbyist, like me, then use the AVR--it's designed to be programmed in C.



  6. #6
    Full Member level 4
    Points: 2,402, Level: 11

    Join Date
    Feb 2006
    Posts
    199
    Helped
    19 / 19
    Points
    2,402
    Level
    11

    what is diff bet c & embedded c

    ANSI C try to handle IO as streams and handles to keep it generic as possible. THis works alright in a command line based computer system. But it falls apart when using a GUI interface or using a microcontroller with very speciic features.



  7. #7
    Newbie level 4
    Points: 443, Level: 4

    Join Date
    Jul 2010
    Location
    bangalore
    Posts
    6
    Helped
    0 / 0
    Points
    443
    Level
    4

    Re: diff between C and embedded C

    what makes embedded c so differnt from the regular c is
    *abscence of console
    *restriction on code size
    *and the compiler
    regular compilers create os dependent executable file where as embedded c
    compilers create a file which are downloaded to controllers to realize
    the required task
    regular compilers don't give abstraction for all the resources of the system
    where as in embedded c compiler give access to all the resources directly so
    code efficient
    code written in embedded c are though not cross compatible but they are
    series compatible



  8. #8
    Advanced Member level 4
    Points: 9,782, Level: 23

    Join Date
    Aug 2004
    Location
    Egypt
    Posts
    1,185
    Helped
    145 / 145
    Points
    9,782
    Level
    23

    Re: diff between C and embedded C

    I see no difference between C and Embedded C. It is after all is the environment you are running on.
    --
    Amr



  9. #9
    Newbie level 4
    Points: 443, Level: 4

    Join Date
    Jul 2010
    Location
    bangalore
    Posts
    6
    Helped
    0 / 0
    Points
    443
    Level
    4

    Re: diff between C and embedded C

    exactly the environment on which they are used differentiate them...
    after analyzing critically we can say embedded c is subset(primitive set) of regular c



  10. #10
    Full Member level 4
    Points: 3,055, Level: 13
    simce's Avatar
    Join Date
    Jan 2004
    Posts
    201
    Helped
    11 / 11
    Points
    3,055
    Level
    13

    Re: diff between C and embedded C

    There's not a difference, the language is still C (probably ANSI C). What makes it Embedded is the features that you use and mindset when writing the application:
    - Try to limit used resources (number of used variables and arrays, optimized code...)
    - Excellent knowledge how to configure build tools to use every bit of HW power and memory.
    - Good knowledge how to estimate needed resources.



+ Post New Thread
Please login