7 Mar
2004
7 Mar
'04
2:47 p.m.
I compiled two versions of 'Hello World!', one in C and the other in Pascal in the ctgwin environment, as follows: C source hello.c: int main() {printf("Hello World!\n");} command line: gcc hello.c -o helloc.exe Pascal source: program Hello; begin writeln('Hello World!') end. command line: gpc hello.pas -o hellopas.exe The sizes of the binaries I obtained were, respectively (copied from the DOS prompt dir command): HELLOC EXE 11.296 bytes HELLOPAS EXE 283.531 bytes Why the sizes of these files are so different? What must be done in order to obtain a hellopas.exe file of reasonable size? Thanks in advance. Claudio