Pascal and compilation

Started by
2 comments, last by Xanather 11 years, 6 months ago
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.
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.

https://www.kbasm.com -- My personal website

https://github.com/wqking/eventpp  eventpp -- C++ library for event dispatcher and callback list

https://github.com/cpgf/cpgf  cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.

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.
Thats cool, thanks : D

This topic is closed to new replies.

Advertisement