Learn Embedded Systems from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Compiling a C program on Linux machine GCC

Narasimha Reddy
08/03/2020 0 0

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



0 Dislike
Follow 1

Please Enter a comment


Other Lessons for You

There is no language called Embedded C
Many students may get surprised to know that there is no language called "embedded C", and there is only one i.e. "C". As every one knows that C is a computer language tool to develop applications. ...

Embedded Systems - PIC Microcontroller
MCLR: First pin of PIC 18F4520 MCLR - Master Clear (It is an active low pin) MCLRE - Master Clear Enable MCLRE = ON (It means Enable the reset function) MCLRE = OFF (It means Disable the reset function) TRIS...

Basics Of Embedded System
TOPICS TO BE DISCUSSED System Embedded System Components Classifications Processors Other Hardware Software INTRODUCTION: What is a system?, A system is a way of working, organizing or...

Xplora Technologies

0 0

Basics introduction to Embedded systems
Embedded Software is a key element in every embedded project that is used to run the micro-controller to perform the desired operations. In our daily life, we frequently use many electronic devices such...

C language
#include #include void main() { clrscr(); printf("\n Urban Pro "); getch(); } Answer the output in c programming: Output: UrbanPro

Looking for Embedded Systems Classes?

The best tutors for Embedded Systems Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Embedded Systems with the Best Tutors

The best Tutors for Embedded Systems Classes are on UrbanPro

Book a Free Demo

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more