Learn Embedded C from the Best Tutors
Search in
Answered on 28/10/2021 Learn Embedded C
Kiran Kumar
. 16yrs experience as java selenium automation Architect
Lesson Posted on 07/09/2020 Learn Embedded C
Ranjeet Patil
I am a teacher. I am giving home tuition. I have done post graduation degree. I have done certificate...
Lesson Posted on 08/03/2020 Learn Embedded C
Compiling a C program on Linux machine GCC
Narasimha
Note: if GCC is not available in your Ubuntu Linux machine install by using below command
$sudo apt-get install gcc-4.9
Here 4.9 is GCC version
Similarly for installing vim
$ sudo apt-get install vim
Below are the steps we have to follow for compiling a c programming file on Linux(Ubuntu):
1) create a .c file using the below command
$vim demo_prog.c
2) write some logic based on your requirement and save using by pressing escape key and type " :wq "
3) compile the demo_prog.c using GCC
$gcc demo_prog.c
4) if no syntax errors in your demo_prog.c file then GCC compiler creates a.out file.
5) run a.out file
$./a.out
read less
Learn Embedded C from the Best Tutors
Lesson Posted on 13/07/2019 Learn Embedded C
What is Safety-Critical Software?
Vihanga EmbedSoft
Vihanga embedsoft is India's only training institute for safety-critical embedded software. We enable...
A software whose failure may cause death or injuries to the users called Safety-Critical Software.
The software present as part of Aeroplanes, or present in Rail as railway signalling software or Automotive (current as part of cars/buses/trucks) or health care (x-rays, scanners etc.).
How is it, safety-critical?
Let's take an example.
1. The software was written for engine control of an aeroplane. During its flight, if the software fails, then the possibility of flight crash may result in life loss or disabilities.
2. Software written for signalling of train network, failure of that may result in a train collision.
3. break systems software of a Car, whose failure may result in an accident
4. Incorrect results produced by x-rays and scanners leads to health hazards to people.
Usually, all the above software are embedded softwares. As the software is safety-critical, extra care needs to be for software design and development.
Out of the four above, Avionics software is more critical because the aeroplane will not always be on the ground to switch off the system that is creating a problem. Hence, more care needs to be taken than others while designing software or Testing software.
Lesson Posted on 20/05/2019 Learn Embedded C
Magic in C=> OFFSET OF MACRO in C
Jyotishkar Dey
An B.E.(Hons) from Jadavpur University, working as Senior Research and Development Engineer in a big...
Here I am going to discuss an exciting macro in C. It will give you offset of a member within a structure.
NULL or 0 address is typecasted to TYPE first. It won't result in segmentation fault as we are not going to access the value at the NULL address. By typecasting NULL to TYPE, you can imagine that an object of type TYPE is residing at 0 address location. Now, after that, if you access the member's address, it will give you the offset. Since we are typecasting 0 address location to TYPE, we are forcing the compiler to think that an object of type TYPE exists there, then afterwards we are reading the address of that member. It will give you the offset because the member's address is calculated relative to 0. Since we are not accessing memory at that location and merely fetching the address, it won't result in segmentation fault due to invalid memory access.
typedef struct
{
int i;
float f;
char c;
} SFOO;
void main(void)
{
printf("Offset of 'f' is %u", offsetof(SFOO, f));
}
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
read lessAnswered on 08/12/2018 Learn Embedded C
Amit Kumar
Experienced & Certified Tutor with 12 years of Experience
Learn Embedded C from the Best Tutors
Answered on 08/12/2018 Learn Embedded C
Amit Kumar
Experienced & Certified Tutor with 12 years of Experience
Answered on 08/12/2018 Learn Embedded C
Amit Kumar
Experienced & Certified Tutor with 12 years of Experience
Answered on 08/12/2018 Learn Embedded C
Amit Kumar
Experienced & Certified Tutor with 12 years of Experience
Learn Embedded C from the Best Tutors
Answered on 08/12/2018 Learn Embedded C
Amit Kumar
Experienced & Certified Tutor with 12 years of Experience
You have to do at least six months course in Embedded System according to the demand.
You have many options like you can do training in following microcntroller of Embedded System .
1) 8051
2) ARM
3) PIC
4) AVR
5) Arduino
6) Raspberry Pi
Or you can also choose Embedded System with Robotics
read lessUrbanPro.com helps you to connect with the best Embedded C Training in India. Post Your Requirement today and get connected.
Ask a Question
The best tutors for Embedded C Classes are on UrbanPro
The best Tutors for Embedded C Classes are on UrbanPro