Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stefan Schroepfer <scr@iis.fhg.de>
To: axp-list@redhat.com
Subject: Re: Writing portable Code for Glibc and 32/64 bit
Date: Fri, 20 Nov 1998 16:02:31 +0100	[thread overview]
Message-ID: <36558486.13728473@iis.fhg.de> (raw)
In-Reply-To: 199811201103.LAA13832@ppp393.ts.rz.tu-bs.de

I'm not aware of a paper, but the following rules may serve as a
starting point:
 - Don't store pointers in ints (it should be safe to use unsigned
   longs for this purpose, but why not use pointer variables).
 - Don't make assumptions on the size of data types, always use
   the sizeof () operator.
 - Avoid assembly language.

scr

y0000218@rzsrv2.rz.tu-bs.de wrote:
>
> for a friend that has to implement transparent network cryptography for
> Linux soon: Where can I find documents that tell him how to code
> good, portable code for glibc and 32/64 bit Linux? It there a quick
> introductory paper to the most important things to remember and a longer
> one explaning what to do and what not?


  reply	other threads:[~1998-11-20 15:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-20 11:03 Writing portable Code for Glibc and 32/64 bit y0000218
1998-11-20 15:02 ` Stefan Schroepfer [this message]
1998-11-20 18:53   ` Jeff DeMaagd
1998-11-21 13:18     ` Dave Gilbert
  -- strict thread matches above, loose matches on Subject: below --
1998-11-21 20:12 Greg Lindahl
1998-11-21 20:40 ` Dave Gilbert
1998-11-21 20:47   ` Maciej W. Rozycki
1998-11-21 20:51 Greg Lindahl
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