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
8148
Age (days ago)
8209
Last active (days ago)
13 comments
6 participants
participants (6)
-
Claudiozm@aol.com -
Frank Heckenbach -
Marten Jan de Ruiter -
Neil Santos -
Prof A Olowofoyeku (The African Chief) -
Waldek Hebisch