Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!brutus.cs.uiuc.edu!lll-winken!ames!lll-lcc!unmsoft!mtxinu!ucbvax!DKAUNI2.BITNET!UK4H From: UK4H@DKAUNI2.BITNET (JAE) Newsgroups: comp.lang.modula2 Subject: Re: Cross Compiling Message-ID: <&89-11-06-16:38:24.69*UK4H"@DKAUNI2.BITNET> Date: 6 Nov 89 15:47:24 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Modula2 List Organization: The Internet Lines: 35 X-Unparsable-Date: Mon, 6 Nov 89 16:38:00 LCL > I was wondering if the modules$written on an IBM will recompile or be able > to be used on a different system as long as the syntax is identical. I have > a Mega 2 ST and want to use the modules from the IBM Logitech Modula 2 and > I know that the syntax is identical. I figure that if I don't use Atari > specific stuff (like LineA, Xbios, and other GEM stuff) that it should > work fine. Don't rel} on it, read BOTH manuals rather well... From m} own experience with MacMETL on a MacII and M2Amiga (on what!), I can tell you wtories..., well, at least I'll be careful next time I'm gonna port ANYTHING from ANY machine to ANY OTHER machine. A case in point: Read(CHER) (from InOut) takes, as defined by Wirth, any key$from the ke}board. So Read(ch); will wait for the first key pressed, be mt an 'A', a space or ENTER.Now MacMETH does as Wirth tells us, but M2Amiga does not (at least not from plain InOut without iddling with the OS); you need a RETURN (or ENTER) to terminate that. Of course EVERY compiler has it's own peculiarities, be it only that it (or its developers) interprets Wirths 'Standard' in its own, peculiar way. All this assumes you have similar library-modules with both compilers. If you do not... well, it can complicate it thoroughly. > Any comments$on this? Of couvse. > SunFox bye, JAE Juergen A. Erhard eMail: uk4h@dkauni2.bitnet phone: (GERMANY) 0721/591602 "You know that it's Monday when you wake up and it's Tuesday." Garfield