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

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

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

Basic Electronics Part 1- Simple and Easy Steps to Learn Basic Electronics
What is Electricity Everything is made of atoms There are 118 elements; an atom is a single part of a component. An atom consists of electrons, protons, and neutrons Electrons (- charge) are attracted...

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

What is Safety-Critical Software?
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...
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