UrbanPro
true

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

N
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

$./a.out

 

0 Dislike
Follow 1

Please Enter a comment

Submit

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. ...

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...
X

Xplora Technologies

0 0
0

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...
X

Xplora Technologies

0 0
0

Be prepared to get trained--init
Before starting the training,students must be mentally prepared for acceptance of new knowledge. Students must attend training with open minded forgetting the position they are working.This will help...
S

Smartnub Softsolutions

0 0
0

On Real time embedded system for safety critical application
The term “Micro computer” usually conjures up in the minds of many people starting from the image of a PC to a laptop or any application specific system. On the other hand an embedded system...
X

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

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