Thread: Embedded c

  1. #1
    Registered User spliff's Avatar
    Join Date
    Aug 2001
    Posts
    14

    Question Embedded c

    I've just finished a C programming course and want to change my job in the automotive trade to a programmer for a motorsport company. Is embedded C a language in it's own right or is it just a continuation of the C language and does anyone know any good books to learn it from

    Thanx guys(and gals)

    may the source be with you...

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    In most respects, embedded C is like regular C

    But there are some differences

    1. embedded processors can be short on processor power and/or memory, so you need to think a bit more carefully about how you implement some things.

    2. embedded systems have
    - no operating system at all
    - a minimal operating system (eg. your own)
    - a real time commercial operating system (eg. VxWorks)

    3. compilers
    The compilers usually run on some desktop machine (usually windows or some unix flavour), and they produce code which runs on the embedded processor. These are called cross-compilers
    http://directory.google.com/Top/Comp...oss_Compilers/
    Contrast this with say VC++ which compiles and runs code on the same machine.

    Some of the better cross-compilers have a range of tools - such as debuggers and emulators.

    4. development
    The software development environment is much more rigourous - you're not going to be able to download a patch to fix some problem, if the code is burnt into a ROM, and buried inside say a bar-code scanner. You'd better make sure its right before it gets that far.

    For a book list, enter "embedded" at this search prompt
    http://www.accu.org/htdig/search_bk.htm

    For more general reading, perhaps
    http://www.embedded.com/

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    I'm currently working in automotive and we use C a lot, ANSI C.

    Like Salem wrote, programming embedded systems comes up with a number of constraints and problem. And therefore programming embedded systems requires a different approach than for example Windows programming. So I think that embedded C is more a way of programming than it is a "dialect" of C.

    A book:

    Programming Embedded Systems in C and C++
    Michael Barr
    1st Edition January 1999
    1-56592-354-5
    191 pages

    A link to bookreviews:

    http://www.ganssle.com/bkreviews.htm

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading and writing to an embedded file
    By HLMetroid in forum C# Programming
    Replies: 4
    Last Post: 01-02-2009, 12:03 AM
  2. Embedded system board
    By ssharish2005 in forum Tech Board
    Replies: 1
    Last Post: 08-12-2007, 03:03 PM
  3. Question on embedded systems
    By ssharish2005 in forum C Programming
    Replies: 3
    Last Post: 08-12-2007, 02:28 PM
  4. embedded c++
    By fizz_uk83 in forum C++ Programming
    Replies: 4
    Last Post: 08-13-2003, 08:09 AM
  5. Embedded C
    By Sheep in forum C Programming
    Replies: 3
    Last Post: 03-27-2002, 06:37 PM