Mail Archives: djgpp/1998/01/04/22:49:40

From: "Tony O'Bryan" <aho450s AT nic DOT smsu DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Hello world!
Date: Sun, 04 Jan 1998 21:33:11 -0600
Organization: Southwest Missouri State University
Lines: 23
Message-ID: <>
References: <34B0250F DOT 4E7 AT netspace DOT net DOT au>
Reply-To: aho450s AT nic DOT smsu DOT edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mark wrote:
> What is the size of a simpe hello world program in C++ it seems a lot
> bigger than the one done in C.

This code:

#include <stdio.h>

int main(void)
  printf("Hello world\n");

  return 0;

compiled both with gxx and gcc, then stripped with strip.exe ended up
the exact same size: 36,504 bytes.

Tony O'Bryan

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019