Mail Archives: djgpp/1998/01/05/03:51:02
On Sun, 4 Jan 1998, Tony O'Bryan wrote:
> 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.
That's because gxx compiles exactly like gcc when the source file
doesn't use any of the C++ classes. All gxx does is just call gcc
after adding some C++ libraries to the command-line arguments. But
the linker doesn't link in anything that is not used by the source.
- Raw text -