From: Martin Knoblauch <knobi@munich.sgi.com>
Subject: Re: best UNIX OS as primary platform for UNIX system software develpoment?
Date: 1996/09/03 [thread overview]
Message-ID: <322C1AAF.2781@munich.sgi.com> (raw)
In-Reply-To: 32189D13.3834@arborsoft.com
mib@ppe.bb-data.de wrote:
>
> Pawel Wezgowiec <paulw@k2.pcz.czest.pl> writes:
>
> > 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.
>
I would actually say, that most 32-bit OSes will have that
relation. But it is a big mistake to assume that this holds
forever. This implicit assumption is probably the major
hurdle when porting from ILP32 (-32/-n32) to LP64 (-64).
> If you are a very good developer who doesn't make the stupid kind of
> mistakes we mere mortals make (and you don't have any code from mere
> mortals to maintain or incorporate into your code), or if you
> absolutely, positively know that you'll never port your code to a
> platform where ints and longs are really distinct types, then it is
> not important.
>
> But my experience, people do make mistakes like
>
> time_t t;
> sprintf(buf, "%ld", t);
>
> or
>
> long l;
> time(&l);
>
> or
> int foo(long *l);
> int i;
>
> foo(&i);
>
> or
> int foo(int i)
> {
> void *p=(void*)i;
> }
>
> or
>
> ...
>
> Believe me. It does happen (especially legacy code is full of this
> kind of stuff). And if you have to weed these out during a
> port -- nightmare.
Actually, the compilers for n32/64 are pretty good at
showing you how crappy your code is. If you want all the
fun, just turn on "-fullwarn".
Martin
--
+---------------------------------+-----------------------------------+
|Martin Knoblauch | Silicon Graphics GmbH |
|Manager Application Center | Am Hochacker 3 - Technopark |
|Silicon Graphics Computer Systems| D-85630 Grasbrunn-Neukeferloh, FRG|
| | Phone: (+int) 89 46108-179 or -0 |
| | Fax: (+int) 89 46108-190 (-222) |
+---------------------------------+-----------------------------------+
|e-mail: <knobi@munich.sgi.com> | V-Mail: 5-8935 | M/S: IDE-3150 |
+---------------------------------------------------------------------+
next prev parent reply other threads:[~1996-09-03 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 ` Jeff Diewald
1996-08-19 4:00 ` James Youngman
1996-08-19 4:00 ` Jianlin Chang
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 ` Andrew Gabriel
1996-08-18 4:00 ` Nick Sayer
1996-08-17 4:00 ` David-Michael Lincke
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 ` Wojciech Galazka
1996-08-29 4:00 ` Scott G. Hall
1996-08-30 4:00 ` Jon Reeves
1996-08-30 4:00 ` R!ch
1996-08-30 4:00 ` Timothy M. Wieman
1996-09-01 4:00 ` John J. Rushford
1996-09-02 4:00 ` Pawel Wezgowiec
1996-08-29 4:00 ` Mike Miscevic
1996-09-04 4:00 ` Patrick Horgan
1996-09-02 4:00 ` mib
1996-09-02 4:00 ` Robert Lipe
1996-09-04 4:00 ` Tom Kelly
1996-09-02 4:00 ` mib
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 [this message]
1996-09-03 4:00 ` mib
1996-09-06 4:00 ` Per Schr�der
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 ` 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-08-19 4:00 ` amk
1996-08-20 4:00 ` guest
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