Computing.Net > Forums > Windows 95/98 > difference between .exe and .com

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

difference between .exe and .com

Reply to Message Icon

Name: ravi
Date: November 15, 2002 at 23:24:34 Pacific
OS: any OS
CPU/Ram: 32
Comment:

what is the difference between .exe and .com files?




Sponsored Link
Ads by Google

Response Number 1
Name: sekirt
Date: November 15, 2002 at 23:34:43 Pacific
Reply:

There are a few differences. Don't know that much, but .COMs are limited to 64K and they are supposed to run faster. I also think that DOS gives priority to .COM. So, if you had 2 programs with the same name, the .COM would run first.

I am sure someone will know much more.
sekirt


0

Response Number 2
Name: w
Date: November 15, 2002 at 23:43:01 Pacific
Reply:

Differences Between .COM and .exe Programs

Differences between .COM and .exe programs involve the following:
Program size
Segmentation
Initialization
Program size
.exe programs may be virtually any size.
.COM programs may only be 64K, including the PSP.
Segments
.COM program combines the PSP, code, data and stack segments.
.exe program the code, data and stack segments must be defined by the
programmer.
Initialization
.COM programs are required to begin at 0100H.
Use the ORG 0100H directive to accomplish this task.
.exe programs are automatically loaded above the PSP area (0100H).


0

Response Number 3
Name: John
Date: November 16, 2002 at 00:00:43 Pacific
Reply:

If what you are sayin is true then why can you change regedit.exe to regedit.com it it still runs?

Regedit is 116K?
It will still run if you change the file exten to .com!


0

Response Number 4
Name: sekirt
Date: November 16, 2002 at 00:16:53 Pacific
Reply:

It does not change the contents of the program, or alter the structure. But it is a trick that works.

sekirt


0

Response Number 5
Name: John
Date: November 16, 2002 at 00:19:29 Pacific
Reply:

Its a trick that works, but it goes over the 64 limit?


0

Related Posts

See More



Response Number 6
Name: sekirt
Date: November 16, 2002 at 01:04:31 Pacific
Reply:

It does not change the structure. Just that command.com recognizes it as a program to run. And does run it.

Can't give you a technical explanation. It was suggested to try that (years ago. DOS version 2.11, when I read it.) that it might run faster


0

Response Number 7
Name: sekirt
Date: November 16, 2002 at 01:17:40 Pacific
Reply:

A better question might be, why is COMMAND.COM larger (93,890 bytes) than 64k?

Anyone?
sekirt


0

Response Number 8
Name: eeeeeeeeeooooooooo
Date: November 16, 2002 at 14:47:21 Pacific
Reply:

sounds like something left over from the days of a 64k memory maximum, couldn't find any reference to it on the net, other then database files that are limited to 64k
and the work arounds for those in c++


0

Response Number 9
Name: sekirt
Date: November 17, 2002 at 19:23:28 Pacific
Reply:

In case anyone is interested, I did get a response in the programming forum.

http://www.computing.net/programming/wwwboard/forum/4450.html

sekirt


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: difference between .exe and .com

.EXE and .COM Association Problem! www.computing.net/answers/windows-95/exe-and-com-association-problem/160741.html

what's the different between outlook2000 and express? www.computing.net/answers/windows-95/whats-the-different-between-outlook2000-and-express/41879.html

difference between ATA66 and ATA100 www.computing.net/answers/windows-95/difference-between-ata66-and-ata100/84424.html