Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-15-2005, 11:30 PM   #1
Beta Member
 
Join Date: Dec 2005
Posts: 1
Default What is .exe file and what kind of info does it store?

I have all the knowledge that it is a binary file, its a kind of program like (notepad.exe), etc. What i really wanted to know is that what kind of information does it store. What is the difference between .com files and .exe files ?
I know its store all the information regarding address of stack pointer , code segment...what i doubt is mentioned below:
When i compile and link a code, its assembly code is generated. Now assembly code can easily be converted into direct binary . so does it mean that all these binary is stored in the .exe file.

One another question is that how exactly an .exe is loaded in ram., say in widows?

I request that if any body can provide me detail as much as possible ..it will be a great help ...waiting anxiously for a reply.

Thanks and regards
Ritesh
__________________

RiteshSingh is offline   Reply With Quote
Old 12-16-2005, 06:50 AM   #2
Golden Master
 
mammikoura's Avatar
 
Join Date: Jul 2005
Posts: 7,459
Send a message via MSN to mammikoura
Default Re: What is .exe file and what kind of info does it store?

not sure if u will find what u are looking for in here is some stuff about .exe.
http://en.wikipedia.org/wiki/.exe
http://en.wikipedia.org/wiki/Executable
__________________

__________________
0_o
mammikoura is offline   Reply With Quote
Old 12-16-2005, 03:18 PM   #3
Baseband Member
 
Griz803's Avatar
 
Join Date: Jun 2004
Posts: 89
Default Re: What is .exe file and what kind of info does it store?

A little DOS history may help you understand the first question. Originally DOS had only two types of executable files, *.exe and *.com were the extensions used. The differences go beyond that. A *.com file was always smaller than 64KB total and had no header information other than blank space preceding the first instruction which was always located an offset of 100h bytes into the file.
An *.exe file was more complex and did not have the 64KB restriction. The header was composed of data blocks that held the information DOS needed to load the program into RAM correctly to be executed. It included such things as total size of instructions, starting offset of first instruction in file and the same information for any internal data members of the program.
The same sort of differences still hold true under Windows.For current information, check out the Knowledge Base articles at msdn.com.
One more type of executable file now exists, the *.dll for Windows. It allows you to separately program sub routines that can be independantly loaded and called for use by different programs at runtime from one file by any program that has the data needed to load it and make the calls. It is intended to make the OS more efficient in hard disk space and speed. I hope this will help you find what you want to know.
__________________
/*What does not kill us, makes us drink far too much caffeine*/
Griz803 is offline   Reply With Quote
Old 12-16-2005, 04:48 PM   #4
BSOD
 
MarxSoccer's Avatar
 
Join Date: Jun 2005
Posts: 2,999
Send a message via ICQ to MarxSoccer Send a message via AIM to MarxSoccer Send a message via MSN to MarxSoccer Send a message via Yahoo to MarxSoccer
Default Re: What is .exe file and what kind of info does it store?

.exe -one click boom it's open and running
.com - internet..?
MarxSoccer is offline   Reply With Quote
Old 12-17-2005, 10:59 AM   #5
Baseband Member
 
Griz803's Avatar
 
Join Date: Jun 2004
Posts: 89
Default Re: What is .exe file and what kind of info does it store?

@Marxsoccer-*.com not anymore Internet than *.exe, they did/do the same thing, just load into the computer's memory differently and can be different maximum sizes.
__________________
/*What does not kill us, makes us drink far too much caffeine*/
Griz803 is offline   Reply With Quote
Old 12-17-2005, 04:15 PM   #6
BSOD
 
MarxSoccer's Avatar
 
Join Date: Jun 2005
Posts: 2,999
Send a message via ICQ to MarxSoccer Send a message via AIM to MarxSoccer Send a message via MSN to MarxSoccer Send a message via Yahoo to MarxSoccer
Default Re: What is .exe file and what kind of info does it store?

by opening a .com, it isn't allowing anything to be downloaded for the most part, you would need a .exe to load..
MarxSoccer is offline   Reply With Quote
Old 12-17-2005, 08:05 PM   #7
Fully Optimized
 
UK31337's Avatar
 
Join Date: Feb 2005
Posts: 2,776
Default Re: What is .exe file and what kind of info does it store?

Quote:
Originally Posted by MarxSoccer
by opening a .com, it isn't allowing anything to be downloaded for the most part, you would need a .exe to load..
.com in this context is a filetype. It's an old filetype used in the early days of MS-DOS, you'll find command.com on versions of Windows up to 2000.
__________________
Master of common sense. If you don't like it, stop reading.
UK31337 is offline   Reply With Quote
Old 12-28-2005, 11:51 PM   #8
Daemon Poster
 
RewtGuy's Avatar
 
Join Date: Dec 2004
Posts: 595
Send a message via AIM to RewtGuy
Default Re: What is .exe file and what kind of info does it store?

.exe is an extention used to group executables together on Windows.

Just because a file extention is something doesn't guarantee that it's that type of file. For example. You can save a .txt file to .exe. Doesn't mean it's going to execute. You see this more in *Nix.
__________________
Windows: A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.
RewtGuy is offline   Reply With Quote
Old 01-02-2006, 05:24 PM   #9
Baseband Member
 
Dnsgm's Avatar
 
Join Date: Jan 2006
Posts: 61
Default Re: What is .exe file and what kind of info does it store?

It's pretty much a program; executable. It could be x.exe.jpg and still may be a program. Formats like that often occur in IRC channel and It's guaranteed a trojan/harmful software.
__________________

Dnsgm is offline   Reply With Quote
Reply

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 Off



All times are GMT -5. The time now is 05:47 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0