Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: RL Griswold <rgriswol@us.ibm.com>
Subject: Re: DEC compilers available for Linux?
Date: 2000/09/19	[thread overview]
Message-ID: <39C7AD53.EEBDBBAC@us.ibm.com> (raw)
In-Reply-To: 4Csx5.4364$nk3.275467@newsread03.prod.itd.earthlink.net

Hack wrote:
> 
> Yup.  SuSE or Red Hat will do the job.  The EGCS stuff will do what you need
> it to do.  It's ANSI compliant anyway.  All of that will put you in the
> 32-bit realm.  It'll allow you to do long and double long computations with
> no problems.  But, it is 32-bit.  Now if you want to go the 64-bit route
> then you only have one option.  And that is FreeBSD.  When booting from SRM
> it puts FreeBSD in 64-bit mode, and the compilers are also ANSI compliant.

I have my own sizeof program that I run on different platforms.  Here's
what it shows when I run it on my Alpha Linux system.  The first program
was compiled with gcc, and the second with ccc:

/home/richard/src > ./sizeof_tst.gcc 
char        1
short       2
int         4
long        8
long long   8
float       4
double      8
long double 8
void*       8
size_t      8
/home/richard/src > ./sizeof_tst.ccc 
char        1
short       2
int         4
long        8
long long   8
float       4
double      8
long double 8
void*       8
size_t      8

Here's the program:

#include <stdio.h>
#include <sys/types.h>
main(){
  printf( "char        %d\n", sizeof( char        ) );
  printf( "short       %d\n", sizeof( short       ) );
  printf( "int         %d\n", sizeof( int         ) );
  printf( "long        %d\n", sizeof( long        ) );
  printf( "long long   %d\n", sizeof( long long   ) );
  printf( "float       %d\n", sizeof( float       ) );
  printf( "double      %d\n", sizeof( double      ) );
  printf( "long double %d\n", sizeof( long double ) );
  printf( "void*       %d\n", sizeof( void*       ) );
  printf( "size_t      %d\n", sizeof( size_t      ) );
}

-- 

Richard Griswold - griswold@acm.org
#include <stddisclaim.h>

Save the whales!  Trade them for valuable prizes!



  parent reply	other threads:[~2000-09-19  4:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-18  4:00 DEC compilers available for Linux? darcher8987
2000-09-18  4:00 ` Hack
2000-09-19  4:00   ` Robert Harley
2000-09-19  4:00   ` RL Griswold [this message]
2000-09-26  1:20     ` ttk
2000-09-19  6:12   ` Takeyasu Wakabayashi
2000-09-19  4:00     ` Warner Bruns
2000-09-19  4:00       ` Takeyasu Wakabayashi
2000-09-19  4:00         ` Tony Hammitt
2000-09-19  6:15     ` Takeyasu Wakabayashi
2000-09-19  4:00       ` Nick Ntarmos
2000-09-19  4:00         ` Takeyasu Wakabayashi
2000-09-18  4:00 ` Serguei Patchkovskii
2000-09-19  0:42   ` W Bauske
2000-09-18  4:00 ` Greg Lindahl
2000-09-24  4:00 ` Don Baker
2000-09-24  4:00   ` Serguei Patchkovskii
2000-09-24  4:00   ` Rob Komar
2000-09-26  4:00     ` Don Baker
2000-09-26  4:00       ` Serguei Patchkovskii
2000-10-17  4:00     ` jdonsbach
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox