[rescue] VAXstation questions

Peter Corlett abuse at cabal.org.uk
Wed May 14 06:21:54 CDT 2003


Dave McGuire <mcguire at neurotica.com> wrote:
[...]
> Here is a real-world example of this, again drawing a comparison between
> VAX and Alpha architectures, using this trivial C program:

> ...while on a VAX, also running NetBSD, built from an identical source
> file:

> vlc$ ls -l helloworld
> -rwxr-xr-x  1 mcguire  wheel  3816 May 13 18:57 helloworld
> vlc$ size helloworld
> text    data    bss     dec     hex     filename
> 1844    260     40      2144    860     helloworld
> vlc$

Object size tells you nothing, really.

To contrast with Debian Linux on m68k (gcc 3.2.1):

abuse at vindaloo:~$ m68k-linux-gcc helloworld.c 
helloworld.c:3: warning: return type of `main' is not `int'
abuse at vindaloo:~$ file a.out
a.out: ELF 32-bit MSB executable, Motorola 68000, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
abuse at vindaloo:~$ ls -l a.out 
-rwxr-xr-x    1 abuse    abuse        4636 May 14 12:13 a.out
abuse at vindaloo:~$ size a.out
   text    data     bss     dec     hex filename
    887     268      28    1183     49f a.out

... and on x86 (gcc 3.2.3):

abuse at vindaloo:~$ gcc -O5 -Wall helloworld.c
helloworld.c:3: warning: return type of `main' is not `int'
abuse at vindaloo:~$ ls -l a.out 
-rwxr-xr-x    1 abuse    abuse        4389 May 14 12:14 a.out
abuse at vindaloo:~$ size a.out 
   text    data     bss     dec     hex filename
    680     260       4     944     3b0 a.out

Which would seem to imply that m68k is more compact than VAX, and x86 even
more so.

In practise, of course, we know otherwise. Debian is a bit constrained in
16MB on m68k, and grunts and strains in 16MB on x86.

(I imaging NetBSD would be happier on the machines, but it never seemed to
want to play nicely with the Amiga.)

-- 
PGP key ID E85DC776 - finger abuse at mooli.org.uk for full key



More information about the rescue mailing list