Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!tektronix!ogcvax!omsvax!hplabs!sri-unix!mogul%Shasta@su-score From: mogul%Shasta%su-score@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: INGRES for 68Ks (Pixel 100) Message-ID: <4542@sri-arpa.UUCP> Date: Thu, 25-Aug-83 14:49:00 EDT Article-I.D.: sri-arpa.4542 Posted: Thu Aug 25 14:49:00 1983 Date-Received: Mon, 29-Aug-83 02:20:36 EDT Lines: 17 From: Jeff Mogul I've ported many a program between Vaxen and 68000s. There are things that people usually ignore when writing code that screw up such ports: (1) Vaxen/PDP11s use a different byte-ordering from 68ks. This shows up almost every time strong typing is violated, especially with casts and unions. (2) If you pass the address of a long or a short to a routine that expects the address of a short or a byte, resp., the "right" thing MIGHT happen on VAX/PDP-11, but probably not on a 68k. (3) Similarly, depending on your compiler you might have to be more careful about getting the return-type declaration right for functions. (4) Code which deals with external representations, such as disk files or network packets, has to face the byte-order problem square in the face. -Jeff