From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: f7344,f136a96409d35cfd X-Google-Thread: 1164f8,f136a96409d35cfd X-Google-Attributes: gidf7344,gid1164f8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!a70g2000hsh.googlegroups.com!not-for-mail From: Neil Rieck Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: System Programming Resources for Alpha Architecture Date: Sat, 29 Mar 2008 09:29:23 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <9401833e-f8d0-4c00-a7f7-82e0b81dc840@p25g2000hsf.googlegroups.com> NNTP-Posting-Host: 65.93.110.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1206808163 21036 127.0.0.1 (29 Mar 2008 16:29:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 29 Mar 2008 16:29:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a70g2000hsh.googlegroups.com; posting-host=65.93.110.246; posting-account=QqCTBgkAAACie99dBE6oFauYH8hE6sk0 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322; InfoPath.1),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.os.vms:72863 comp.sys.dec:4369 On Mar 29, 10:00 am, hel...@astro.multiCLOTHESvax.de (Phillip Helbig--- remove CLOTHES to reply) wrote: > In article > , > > Neil Rieck writes: > > On Mar 27, 3:02=A0pm, The-G...@hotmail.com wrote: > > > Does anyone know of any good resources for System Programming / OS > > > Development / OS Porting to Alpha Architecture? =A0Books, ebooks, or > > > sites online would be a big help. =A0Thanks in advance! > > > > James T. Sprinkle (The Grue)http://www.myspace.com/jamestsprinkle > > > I'm not sure what you are trying to do, but I've found that it is not > > a good idea to get too machine specific. Properly written VAX > > applications will almost always compile and run on Alpha and Itanium. > > Indeed. However, if he needs to "port", then he probably has an > application which is NOT written properly, i.e. contains assumptions > which are valid for VAX but not for ALPHA. Often sticking to the > language standard will solve some of these problems, but having the > compiler flag non-standard stuff which might be dangerous (when the code > runs on another platform) will also flag non-standard stuff which might > be required (e.g. DEC-specific extensions). Agreed. About 5 years back while I was porting some code from VAX to Alpha, I ran into a bunch of custom DEC-C functions which were mapped onto VAX instructions. A very clever programmer was able to squeeze a few more drops of performance out of an underpowered VAX box, and he probably received a cool bonus for pulling this off, but he should not have done this. Worse still, here I was using my low level VAX machine language skills to decode what was happening in "C". In five years more time, there might not have been anyone around with the skills to do this kind of port. So the key here is to avoid, whenever possible, architecture specific code leaving the bulk of those decisions to the system calls. If you must insert architecture specific code, make sure it is disabled with complier lexicals and includes lots of source-code remarks. NSR