write program in console:
copy con helloworld.pas
program helloworld;
begin
writeln('Hello,World');
end.
ctrl^zfpc -CX -XXs -Os helloworld.pas
start in console:
helloworld
Output:
Hello, World
Easy, convenient, and a small executable....
edlin is slightly more advanced, of course...
After you understand that use fp.exe (or simply fp under other platforms than Windows) and equivalent to turbo.exe
After that try using these for a GUI program:
copy con hellowindows.pas
program hellowindows;
{$apptype GUI}
uses windows;
begin
Messagebox(0,'Hello','World',MB_OK);
end.
ctrl^zThen use Lazarus and you will find it is more comfortable and achieves the same result (also in executable size) when you read some documentation.... And is actually a lot smaller than a full install of, say, Visual Studio...