Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling to COM format ???

Status
Not open for further replies.

Frki

Programmer
Oct 30, 2003
2
BA
Is there any way to compile Turbo Pascal 7.0 code to .COM file format, and not to .EXE format ?
 
Hi there,

I'm not sure why you want to do it, but here's a tool that can convert from exe to com:

ftp://ftp.sac.sk/pub/sac/utilprog/xloader.zip

USE AT OWN RISK §;O)

Regards


Jakob
 
Remember that you probably won't be able to convert an exe to a com if the exe stemmed from something with multiple units, since each unit will have its own code segment, but in com that isn't the case. Also if your exe is at all large (global variables plus code > 64K) it won't fit in a com.
 
The other option would be to try and get your hands on an older version. I believe TP3 was doing .com only. Unfortunately, I don't have a version of it anymore... but others might and they could compile the source for you :)



Cheers,

Realm174
 
You will have a very hard time converting 7.0 code to 3.0 code (believe me, I started learning Pascal in version 3.0).
It had no units, keyboard handling was more difficult, you didn't have much memory (all the code and global variables had to fit in 64K) and you certainly couldn't use object.
On the other hand, turning off ^C was easier and compiled programs didn't have any trouble with fast CPUs.



Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
Don't worry what people think about you. They're too busy wondering what you think about them.
 
... which brings me back to my original wondering why the need for a binary ??

Could be that it's supposed to run on an embedded system?? -which I think will most certainly require another compiler than Borlands!


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top