From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4a212ac2372bd10e X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,4a212ac2372bd10e X-Google-Attributes: gid110292,public X-Google-Thread: f6df3,4a212ac2372bd10e X-Google-Attributes: gidf6df3,public X-Google-Thread: 102b75,4a212ac2372bd10e X-Google-Attributes: gid102b75,public From: Tony Griffiths Subject: Re: 21164PC demonstration/talk at Microprocessor Forum Date: 1996/11/08 Message-ID: <32829605.7ADB@OntheNet.com.au>#1/1 X-Deja-AN: 195186175 references: <54r02t$fjc@usenet.pa.dec.com> <557hl1$srt@usenet.pa.dec.com> <32830939.182450109@nntp.msstate.edu> content-type: text/plain; charset=us-ascii organization: On the Net (ISP on the Gold Coast, Australia) mime-version: 1.0 reply-to: tonyg@OntheNet.com.au newsgroups: comp.arch,comp.sys.dec,comp.sys.intel,comp.sys.powerpc.tech x-mailer: Mozilla 3.0 (WinNT; I) Shane Hebert wrote: > > On Tue, 05 Nov 1996 11:21:28 -0800, an alien in the guise of > rbarris@quicksilver.com (Rob Barris) wrote: > > >| In any event, the original topic (moving x86 NT apps to Alpha)... would > >|you then suggest that such transitions are easier or more > >|difficult than the example I provided (MacOS 68k->PPC)? > > Don't know about MacOS but Tuesday I compiled some code (a couple > hundred source files) that runs fine on x86 NT on an Alpha NT box and > it again ran fine (actually, even better because it was a good deal > faster). No code modification was required, just a recompile. So > that was easy, however, a coworker has some driver code that works > fine on the x86 NT and compiles fine on the Alpha NT but doesn't work > on the Alpha NT. The driver fails when trying to initialize the PCI > bus data structures. It is fixable but it means that it is a little > different from the x86 stuff but what do you expect when you're > writing hardware drivers? Well my experience is that "Oils ain't oils", or in my case one Alpha Workstation is not necessarily equal to another Alpha W/station even when both have PCI buses. When writing a PCI sync card driver, I noticed that the OS (Unix) supported an I/O macro {READ,WRITE}_IO_D{8,16,32,64} so I tried the D64 variant and it worked, even though the machine on which I was writing the driver had only 32-bit PCI. Well it all came unstuck when DEC released another machine with 64-bit PCI and someone on the other side of the world (fortunately in the test lab in Mass or N.H.) plugged the 32-bit card into the 64-bit slot. I had "great fun" debugging this from 16,000 Km away. NOT! So the moral of the story is => Don't write device driver for a living... You'll go mad!!! Code that doesn't play with the guts of the machine and is well written has a reasonable chance of working cross platform, even kernel code. Code that play with the hardware almost certainly breaks even on the same architecture after the h/w engineers have done their bit to drive us s/w people into a state of alcoholic oblivion. > > ============================================================ > Shane Hebert > shane@erc.msstate.edu > Disclaimer: Any opinions stated above are mine and not > those of my employer. > Disclaimer: If I say something and you do it, it isn't > my fault. Tony