Link to home
Start Free TrialLog in
Avatar of senexpert
senexpert

asked on

Difference

What is the Difference between .com and .exe files
ASKER CERTIFIED SOLUTION
Avatar of BottledGenie
BottledGenie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curri
curri

They are both executable file formats, and unless you know assembly, the difference won't make much sense (it probably won't make sense anymore :), the difference was more important in the old MS-DOS days). From a user perspective, .com files are usually 'small' programs, and .exe files are the normal executables.

From an assembly language point, .com files are always loaded in a specific address, and unless you know what you are doing, they can only use one memory segment (64K). .exe files contain relocatable code, and don't have the segment restriction. .com files were loaded a little bit faster in the old days.

Orlando