Skip to main content

differences between C and embedded C

C and embedded C


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


Other differences between C and embedded C
what makes embedded c so different from the regular c is
*absence 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 is downloaded to controllers to realise
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

Comments

Popular posts from this blog

CAN INTERVIEW QUESTIONS

Qualifiers and Modifier in C

RTOS Real time operating system interview questions

CAN INTERVIEW QUESTIONS 2

What is UDS protocol

Memory mapping in c

TOP IOT PLATFORMS