Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-12-2005, 11:46 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2005
Location: coimbatore
Posts: 30
Default about C


hi
pls anybody give me the solution.
how to compile or execute 'c' program without editor.
saro_gn is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-12-2005, 12:28 PM   #2 (permalink)
Wise Old Owl
 
Join Date: Dec 2004
Location: New Delhi/Bangalore
Posts: 1,087
Default

i dont think its possible wihout the editor,u need to have a compiler..

but if u have executed the program once, then an exe file is created in c:\TC\Bin by the name of urprogramname.exe u can use this, if u were asking something like this..
__________________
Shwetanshu Srivastava
I can give a headache to an aspirin!
shwetanshu is offline  
Old 01-12-2005, 12:38 PM   #3 (permalink)
SNIST Screamer !!
 
vijay_7287's Avatar
 
Join Date: Aug 2005
Location: Hyderabad
Posts: 1,163
Default

wel the editor is a part of the compiler which eventually gives u the .exe file

so u cant break the sequence

once u have the .exe file then u can execute an per ur will !!
__________________
http://snistscreamers.blogspot.com/
http://insidevoidmain.blogspot.com/

SNIST-Blog: the Voice of SNIST... http://www.snistblog.com/
vijay_7287 is offline  
Old 01-12-2005, 01:25 PM   #4 (permalink)
MVP in VC++
 
Join Date: May 2005
Posts: 625
Default

First tell..why do u want to compile/execute c program without editor??
As per my knowledge ...Which never happens...without complier..
cvvikram is offline  
Old 01-12-2005, 04:00 PM   #5 (permalink)
Wise Old Owl
 
aadipa's Avatar
 
Join Date: Feb 2004
Location: Palghar, Mumbai
Posts: 1,000
Default

Editor is a different thing and compiler is different.

Some vendors gives a common solution called IDE or Integrated Development Environment.

eg.
TC.exe is an IDE.
Notepad is Editor.
Tcc.exe is compiler.

To write a code, you need an editor while to compile it you will need a compiler.
__________________
i generally prefer quality over quantity
1 aadi + 1 aadi = 1 full ;)
aadipa is offline  
Old 01-12-2005, 05:23 PM   #6 (permalink)
In The Zone
 
Netjunkie's Avatar
 
Join Date: Apr 2005
Location: Hitech City, "Hyderabad"
Posts: 325
Default

As aadipa said, editor is not a part of the compiler & you will not need it to compile & execute programs.
I am not sure if the Tcc.exe has any command line switches to input the file name.

If you are on Linux, you will not need an editor if you already have the ".c" file. You can use the "cc" or "gcc" command from the console to compile the programe.

eg.
gcc prog.c

A ".out" file is generated in the same directory which is the executable programe.
Netjunkie is offline  
Old 01-12-2005, 06:03 PM   #7 (permalink)
In The Zone
 
puja399's Avatar
 
Join Date: Jul 2005
Posts: 324
Default Re: about C

Quote:
Originally Posted by saro_gn
hi
pls anybody give me the solution.
how to compile or execute 'c' program without editor.
What an interesting question !!!!
First of all, it is absolutely possible to compile or execute 'c' program without editor.
To compile a 'c' program, all u need is a 'c' compiler; to execute a 'c' program, well... compiled program that is...u don't need anything, I mean, only the OS is enough!!! All u need to do is run the executable. And yes, u can't execute a 'c' code (uncomplied, that is), but I am sure u already know that!!!

U need an editor (text editor, that is) for writing the 'c' code into the file, u can even do that (with much pain, of course, but can do it nonetheless) with 'copy con' command (in MS-DOS, or Dos Box). But, for compiling of excuting, I am sure u don't need any 'editor' or anything like that.
puja399 is offline  
Old 02-12-2005, 08:04 AM   #8 (permalink)
Apprentice
 
Join Date: Jul 2004
Location: Pune
Posts: 70
Default

if you are using Turbo C, open a command window (DOS box), go to the folder where your 'c' program is, and then type "tcc program.c" or "tcc.program.cpp". it will compile and linkup and will show any errors or warnings. but you must have the tc/bin directory in your path. otherwise copy your program file into the bin directory and then compile. once compiled, you can run your program just by typing its name because its an executable now. hope this helps.
kikass is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clmlbx
- by Sujeet
- by gforz

Advertisement




All times are GMT +5.5. The time now is 03:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2