From: Pawel Wezgowiec <paulw@k2.pcz.czest.pl>
Subject: Re: best UNIX OS as primary platform for UNIX system software develpoment?
Date: 1996/09/02 [thread overview]
Message-ID: <Pine.HPP.3.94.960902140235.15361A-100000@k2.pcz.czest.pl> (raw)
In-Reply-To: Dx2Hx7.AFw@sapphire.alisa.org
On Sun, 1 Sep 1996, John J. Rushford wrote:
> Scott G. Hall (sgh@cbgbcs.cb.att.com) wrote:
> : Wojciech Galazka <wgalazka@zoolook.chem.uw.edu.pl> wrote:
> : >mib@bb-data.de (Martin Ibert) writes:
> : No -- Linux has the same problem: sizeof(int) == sizeof(long). You need
> : something where these are different.
>
> sizeof(int) == sizeof(long) is true on a lot of UNIX platforms not just Linux
> or Solaris x86 and has been for a long time. Just curious as to why you use
> this criteria to judge which OS to use.
>
Hmm...
This complicated piece of code I run on our HP9000 K200 under HP-UX
10.01:
-------------------------------------
#include <iostream.h>
int main()
{
cout << "Size of int = " << sizeof(int) << endl;
cout << "Size of long = " << sizeof(long) << endl;
cout << "Size of long long = " << sizeof(long long) << endl;
return 0;
}
-------------------------------
I compiled it with gcc 2.7.2.1 (I haven't got HP C++,
and I don't want to rewrite it to "printf version" to compile
it with the original cc) - AFAIK the result would be the same
with the original one.
What was the output ?
-----------------------------
Size of int = 4
Size of long = 4
Size of long long = 8
-------------------------------
Is HP-UX that bad platform ??
Probably there are more Unix systems with
sizeof(int) == sizeof(long). But I don't think it's
really important.
If I were you I'd focused on the quality of development tools
for the "recommended platform".
Assuming size of data types is one of the best ways to
write code very hard to maintain. Along with some other
"hard-coded" code it would be not the primary but the only
platform for your application.
Paul
=======================================================================
Pawel Wezgowiec | Technical University of Czestochowa
| Institute of Mathematics
Network Administrator | and Computer Science
=======================================================================
http://k2.pcz.czest.pl/~paulw
=======================================================================
next prev parent reply other threads:[~1996-09-02 4:00 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-16 4:00 best UNIX OS as primary platform for UNIX system software develpoment? Jianlin Chang
1996-08-16 4:00 ` Ron Natalie
1996-08-17 4:00 ` Ping Huang
1996-08-17 4:00 ` Jianlin Chang
1996-08-19 4:00 ` Bill Deegan
1996-08-19 4:00 ` James Youngman
1996-08-19 4:00 ` Jianlin Chang
1996-08-19 4:00 ` Jeff Diewald
1996-08-20 4:00 ` Ron Natalie
1996-08-19 4:00 ` Jianlin Chang
1996-08-22 4:00 ` Jason C R Hill
1996-08-21 4:00 ` Richard Cognot
1996-08-17 4:00 ` David-Michael Lincke
1996-08-17 4:00 ` Andrew Gabriel
1996-08-18 4:00 ` Nick Sayer
1996-08-19 4:00 ` amk
1996-08-20 4:00 ` guest
1996-08-19 4:00 ` Matt Houseman x4408
1996-08-19 4:00 ` Thomas Graichen
1996-10-17 4:00 ` sukumar
1996-08-27 4:00 ` Martin Ibert
1996-08-29 4:00 ` Mike Miscevic
1996-09-04 4:00 ` Patrick Horgan
1996-08-29 4:00 ` Wojciech Galazka
1996-08-29 4:00 ` Scott G. Hall
1996-08-30 4:00 ` R!ch
1996-08-30 4:00 ` Jon Reeves
1996-08-30 4:00 ` Timothy M. Wieman
1996-09-01 4:00 ` John J. Rushford
1996-09-02 4:00 ` Pawel Wezgowiec [this message]
1996-09-02 4:00 ` mib
1996-09-02 4:00 ` mib
1996-09-02 4:00 ` Robert Lipe
1996-09-04 4:00 ` Tom Kelly
1996-09-03 4:00 ` mib
1996-09-06 4:00 ` Per Schr�der
1996-09-03 4:00 ` Chuck Dillon
1996-09-03 4:00 ` Poll Dubh
1996-09-06 4:00 ` Paul T. Wilson
1996-09-09 4:00 ` Chuck Dillon
1996-09-03 4:00 ` Martin Knoblauch
1996-09-04 4:00 ` Urs Thuermann
1996-09-05 4:00 ` Peter Gross
1996-09-05 4:00 ` Ronald Fischer
1996-09-05 4:00 ` mib
1996-09-06 4:00 ` Peter Mayne
1996-09-06 4:00 ` Eric Fischer
1996-09-09 4:00 ` Dan Pop
1996-09-11 4:00 ` Richard Tobin
1996-09-12 4:00 ` Lawrence Kirby
1996-09-13 4:00 ` Dan Pop
1996-09-15 4:00 ` Lawrence Kirby
1996-09-13 4:00 ` Marc Roussel
1996-09-13 4:00 ` David Mosberger-Tang
1996-09-06 4:00 ` mib
1996-08-22 4:00 ` Roger Binns
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