4 ms·
>Also a mvp production exe will be 2.5 MB, no stdlib/.net/qt needed. And a hello world Free Pascal EXE can be as small as 57KB: $ dir fpc_hello.exe 07/26/201
by vram22 9y ago
>Also a mvp production exe will be 2.5 MB, no stdlib/.net/qt needed.
And a hello world Free Pascal EXE can be as small as 57KB:
$ dir fpc_hello.exe
07/26/2016 09:43 PM 57,402 fpc_hello.exe
Source and output:
$ type fpc_hello.pas
program hello_1;
{ uses ; }
var i: integer;
BEGIN
for i := 1 to 10 do
begin
writeln(i:4, ' Hello from Free Pascal');
end;
END.
$ fpc_hello
1 Hello from Free Pascal
2 Hello from Free Pascal
3 Hello from Free Pascal
4 Hello from Free Pascal
5 Hello from Free Pascal
6 Hello from Free Pascal
7 Hello from Free Pascal
8 Hello from Free Pascal
9 Hello from Free Pascal
10 Hello from Free Pascal
I also checked the size of similar programs in C and D. C was about 22KB, IIRC. D was something more, don't exactly remember, but not a lot more, probably.