• Advertisement
Sign in to follow this  

Pascal and compilation

This topic is 1944 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am sorry if I was not supposed to post this here, but I have no idea where else to post this and this looked the most relevant.

My mate did a school programming task in pascal, while I did it in C#.

He wanted me to test his application and so I did, and to my surprise it ran fine without having to install any runtimes/redistributables!

Does the free pascal compiler compile to native/machine code just like C++, and not require any dependencies?

Just curious thanks : D

Xanather.

Share this post


Link to post
Share on other sites
Advertisement
Not sure which compiler you are talking about and it depends on compiler.
But usually a Pascal program is compiled to native standalone executable.
So you are correct.

Share this post


Link to post
Share on other sites
Some compilers embed the runtime into the executable (e.g. go and freepascal IIRC), so you can just run it. Pascal is a systems language, and it does compile to native code.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement