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!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 29 Mar 2008 12:18:53 -0500 Message-ID: <47EE79B6.5060303@comcast.net> Date: Sat, 29 Mar 2008 13:17:42 -0400 From: "Richard B. Gilbert" Reply-To: rgilbert88@comcast.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 (NSCD7.01) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: System Programming Resources for Alpha Architecture References: <9401833e-f8d0-4c00-a7f7-82e0b81dc840@p25g2000hsf.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 68.44.203.111 X-Trace: sv3-oMVqs/t2owEokTZrjlPI9pOSF92+2Orc8ONp741pTLhWXx3PzISF9J7Oy16kFP0ydo6pXXYa7WR3cmg!T+FxN+Uw59C4kRhuLw0JMKfM+7acL5PPOPeEnAiiW209FYM2XqmeQPtyoytNT4LM2ysw97v6Cg+W!9sN9+UpC X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Xref: g2news1.google.com comp.os.vms:72864 comp.sys.dec:4370 Neil Rieck wrote: > 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. > Of course he should have done it! It's what he was paid to do. It justifies his existence! Clearly, he failed to document it well enough to satisfy you but if I had a dollar for every programmer who under documents his work, I'd be traveling in a chauffeur driven Rolls-Royce!!! Documentation usually happens ONLY when someone MAKES it happen! The usual procedure is "get the code out the door and to hell with the documentation". That's when you get the documentation from hell! Or no documentation! > 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. I'm available! I hope to remain available for a few more years! > 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 >