C portability
Dennis Reso
sevihc!reso at sharkey.cc.umich.edu
Wed Aug 8 13:05:38 AEST 1990
Where I currently work, we have a lot of FORTRAN programmers and
are beginning to use C in several areas only because FORTRAN just
*can't* do what we need. The problem is, we need to specify a
set of recommendations and checkers to make sure (as best as we
can) that code remains portable to several (SYSV, BSD, PrimeOS)
machines. We currently have a checker for the FORTRAN, but my
experience with C indicates that we are much better off educating
programmers rather than spending a lot of time second-guessing
and correcting them. Therefore I decided to tap into the collective
net-wisdom concerning:
1. Defensive programming.
Are there books available which discuss, in depth, programming
practices that result in the most machine-portable code?
2. Lint as a portability checker.
Is there a description of what lint is supposed to do, for
example sufficient to write your own if a machine has none.
(Not that we're planning on it, but Prime has no lint and it
would be nice to know that there is some kind of "standard"
regarding lint).
Since it seems to be integrated with the compiler and libraries,
how machine-specific are lint runs on the same code/different
machines likely to be?
________________________________________________________________________
Dennis Reso sevihc!reso at sharkey.cc.umich.edu
Sterling Hieghts, MI USA {sharkey|itivax}!sevihc!reso
Ford Motor Company, Dearborn pms415!reso at fmsrl7.srl.ford.com
More information about the Comp.lang.c
mailing list