Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Compiling to COM format ???

Compiling to COM format ???

Compiling to COM format ???

Is there any way to compile Turbo Pascal 7.0 code to .COM file format, and not to .EXE format ?

RE: Compiling to COM format ???

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.

RE: Compiling to COM format ???

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 :)



RE: Compiling to COM format ???

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.

Bert Vingerhoets
Don't worry what people think about you. They're too busy wondering what you think about them.

RE: Compiling to COM format ???

... 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!


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close