Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to generate an executable binary file out of c Code in L

Status
Not open for further replies.

shashipoddar

Member level 2
Joined
Oct 1, 2009
Messages
52
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
chennai
Activity points
1,608
Dear concerned,

We students are doing a project and need the guidance of concerned experts i this field related to software development. I would like to know how to convert the C code to executable binary file in Linux Platform.


Kindly give soluation.
 

Re: How to generate an executable binary file out of c Code

Linux distros have 'gcc' . you can use it for c compiling.

open a terminal. type 'gcc -v' . you will get some output.
to compile your c program say 'abc.c' type


gcc abc.c

there are other command line options . but for simple programs this is enough.
 
Re: How to generate an executable binary file out of c Code

Any compiler will generate .exe file(executable file) for you.
Since you are insisting on Linux platform inbuilt gcc or cc will do your job


if your file name is file.c
to compile it & get .exe file you can use either of these command

cc file.c -o file

gcc file.c -o file


you will get file.exe file in the working directory


i guess your problem is solved
 

Re: How to generate an executable binary file out of c Code

Any C compiler can do that.
--
Amr
 

Re: How to generate an executable binary file out of c Code

Using the gcc command as shown in the above posts.
--
Amr
 

it is simple
just give a command gcc file.c
then u get the file a.out
run that using ./a.out
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top