From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fcda7,71c35a0e73c110d5 X-Google-Attributes: gidfcda7,public X-Google-Thread: 10872d,71c35a0e73c110d5 X-Google-Attributes: gid10872d,public X-Google-Thread: fa528,71c35a0e73c110d5 X-Google-Attributes: gidfa528,public X-Google-Thread: 1164f8,71c35a0e73c110d5 X-Google-Attributes: gid1164f8,public X-Google-Thread: 115614,71c35a0e73c110d5 X-Google-Attributes: gid115614,public X-Google-Thread: 11035d,71c35a0e73c110d5 X-Google-Attributes: gid11035d,public X-Google-ArrivalTime: 2003-08-08 02:38:14 PST Path: archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!diablo.theplanet.net!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-win.server.ntli.net.POSTED!53ab2750!not-for-mail Message-ID: <3F336F45.400A411A@ntlworld.com> From: "Dr. David Kirkby" X-Mailer: Mozilla 4.8 [en] (X11; U; SunOS 5.9 sun4u) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.sys.hp.hpux,comp.unix.tru64,comp.sys.dec,comp.unix.solaris,comp.sys.sgi.admin,comp.unix.aix Subject: Re: Free UNIX for non-commerical use. References: <3F233C74.4F4C3BAB@ntlworld.com> <3F23A0AC.4BF58D49@hotmail.com> <3F247C24.8FAA50A6@hotmail.com> <3F2B7E75.AE80EACE@hotmail.com> <3F330255.B90F491B@ntlworld.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Date: Fri, 08 Aug 2003 10:37:09 +0100 NNTP-Posting-Host: 62.255.96.127 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-win.server.ntli.net 1060335431 62.255.96.127 (Fri, 08 Aug 2003 10:37:11 BST) NNTP-Posting-Date: Fri, 08 Aug 2003 10:37:11 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.sys.hp.hpux:30210 comp.unix.tru64:10560 comp.sys.dec:16626 comp.unix.solaris:165244 comp.sys.sgi.admin:18952 comp.unix.aix:54524 Tony 'Nicoya' Mantler wrote: > > In article <3F330255.B90F491B@ntlworld.com>, > "Dr. David Kirkby" wrote: > > : The problem is that a high > : percentage of developers develop code on a machine which is > : a) 32-bit > : b) big-endian > > x86 is little-endian Sorry it was late and I did not even think about what way around it was. Yes, I accept that the bog-standard PC, which is what I was meaning, is little-endian. In my life I've even come across a machine which I guess you would call mid-endian or something like that. It was a 24-bit machine, with either most (or might have been least) significant byte in the middle!! That was on a Bruker NMR (or MRI as it's now called) clinical system. > Thanks primarily to Debian, endian errors are getting very rare, and > pointer-size errors are slowly on their way out too. I don't know what Debian's contribution is, but it can't get around the fact that if people write binary data, it will be unreadable on another system, unless they make provision by having a switch to read data in the other format, or they did what I once did, which was to write a program such that the binary data was written in one format, irrespective of the platform. > [...] > : I'd like to read the temperature of my SCSI disks. There are several > : Linux utilities to do this, but not one will work on SPARC. Yet the > : author of 'cdrecord' has clearly demonstrated it's possible to write > : low-level SCSI code that is portable. > [...] > > Possible but difficult. Every single platform uses a different API to send > commands to and from drives. cdrecord gets around this by (no surprise) writing > different drive interface code for every single platform. In which case, if you develop a program that needs low-level SCSI, why not start from J�rg Schilling's code, where the API is I assume consistent for cd-record, and the interface code is platform specific? J�rg Schilling might like to comment on that. I accept low-level code is more difficult, but if people had access to different systems cheaply, they might think about these issues more. But there are many bits of code around where the too much is assumed about the platform, that does not need to be. It might assume 'memset' exists, which is not always the case. It might assume 'long long' exists, which is not always the case. I can't help feeling that making things like the OS and development tools readily available for non-commercial use, will encourage more people to look to use other hardware, and perhaps realise gcc is not the only compiler in the world, and some of gcc's options are not accepted by someone else's compiler. > One of these days I might port smartmontools or some other package to IRIX, but > I don't have a Sun so you're out of luck there. Well I have an SGI too, but are less concerned about that, as it only runs a few hours/week and don't bother me too much. Yesterday and Wednesday I had a lot of temperature problems on my older SPARC 20's which have fast disks and fast CPUs in them. Hence my 'brute force' approach to over-temperature protection http://www.medphys.ucl.ac.uk/~davek/sun/cool.html came into effect. -- Dr. David Kirkby, Senior Research Fellow, Department of Medical Physics, University College London, 11-20 Capper St, London, WC1E 6JA. Tel: 020 7679 6408 Fax: 020 7679 6269 Internal telephone: ext 46408 e-mail davek@medphys.ucl.ac.uk