Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!uupsi!sunic!tut!news From: pl@etana.tut.fi (Lehtinen Pertti) Newsgroups: comp.lang.c Subject: Re: Help with C between 68000 & 80286 Message-ID: <1990Aug6.070012.13007@funet.fi> Date: 6 Aug 90 07:00:12 GMT References: Sender: news@funet.fi (#News ) Organization: Finnish University and Research Network FUNET Lines: 27 From article , by lodzins@pilot.njin.net (Dean Lodzinski): > > It appears I have successfully made functions to convert int and long > int to the correct format and the numbers are correct. I am still > having problems with other types. > In addition to byte order, also alignment can cause problems. For example struct x { int i; char x; int z; }; is possible to allocate: long, byte, dymmy-byte, long ( 68000 32-bit compiler ) word, byte, dummy-byte, word ( 68000 16-bit compiler ) word, byte, word ( 80286 16-bit compiler ) -- pl@tut.fi ! All opinions expressed above are Pertti Lehtinen ! purely offending and in subject Tampere University of Technology ! to change without any further Software Systems Laboratory ! notice