* System Programming Resources for Alpha Architecture
@ 2008-03-27 19:02 The-Grue
2008-03-27 21:08 ` John Wallace
` (2 more replies)
0 siblings, 3 replies; 33+ messages in thread
From: The-Grue @ 2008-03-27 19:02 UTC (permalink / raw)
Does anyone know of any good resources for System Programming / OS
Development / OS Porting to Alpha Architecture? Books, ebooks, or
sites online would be a big help. Thanks in advance!
James T. Sprinkle (The Grue)
http://www.myspace.com/jamestsprinkle
^ permalink raw reply [flat|nested] 33+ messages in thread* Re: System Programming Resources for Alpha Architecture 2008-03-27 19:02 System Programming Resources for Alpha Architecture The-Grue @ 2008-03-27 21:08 ` John Wallace 2008-04-01 11:29 ` Keith Cayemberg 2008-03-27 21:34 ` Tom Linden 2008-03-29 12:10 ` Neil Rieck 2 siblings, 1 reply; 33+ messages in thread From: John Wallace @ 2008-03-27 21:08 UTC (permalink / raw) <The-Grue@hotmail.com> wrote in message news:9401833e-f8d0-4c00-a7f7-82e0b81dc840@p25g2000hsf.googlegroups.com... > Does anyone know of any good resources for System Programming / OS > Development / OS Porting to Alpha Architecture? Books, ebooks, or > sites online would be a big help. Thanks in advance! > > James T. Sprinkle (The Grue) > http://www.myspace.com/jamestsprinkle It seems like an odd time to be asking, given that the architecture is "mature", but hey... For starters, try the "Alpha Architecture Handbook". It's around four hundred pages, freely available in various versions in various places, e.g. http://www.comms.scitech.susx.ac.uk/fft/programming/alphaahb.pdf is a Compaq-badged fourth edition. It's mostly a subset of the Alpha Architecture Reference Manual, which is around a thousand pages of commercial book, not as far as I know legitimately downloadable (though chunks are on Google Books). It should still be available new from bookstores but won't be cheap; 2nd hand will be more affordable, and you may not need it anyway - depending on what you are up to, the handbook covers a lot. These things define the architecture. Then there are various generations of CPU chips which implement the architecture, and various generations of support chips which connect the CPU chips to the outside world (PCI and the like). The chips usually come with their own documentation, which might or might not be of interest depending on your plans. Documentation for chips used to live at http://ftp.digital.com/pub/Digital/info/semiconductor/literature/ but I think that's gone (it's not there right now), and I don't know of any official replacements which still work (there were some, they're gone too). Fortunately various Alpha technical bits from there and elsewhere are squirreled in various places around the Internerd, e.g. http://farrer.net/~rbf/files/docs/Alpha/ There are other technical resources too. The Digital Technical Journal will have shorter articles on specific topics which may be of interest; an index is at http://www.hpl.hp.com/hpjournal/dtj/past.htm but sadly the index has been rather poorly webified. There are Alpha-related articles in various issues, you just have to (tediously) find relevant ones (e.g. Volume 6 Number 1 from 1994 has some early Alpha PC stuff in it, and there is later stuff too). The linux-alpha community has a lot of material online which talks about implementing a commodity OS on commodity Alpha hardware (or as close to "commodity" as Alpha got, which was technically quite close in many ways); there's some BSD stuff too. Have a look around, come back with the next set of questions. Hope this helps, John ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-27 21:08 ` John Wallace @ 2008-04-01 11:29 ` Keith Cayemberg 2008-04-06 3:59 ` mattst88 0 siblings, 1 reply; 33+ messages in thread From: Keith Cayemberg @ 2008-04-01 11:29 UTC (permalink / raw) On Mar 27, 11:08 pm, "John Wallace" <johnwalla...@yahoo.spam.co.uk> wrote: > These things define the architecture. Then there are various generations of > CPU chips which implement the architecture, and various generations of > support chips which connect the CPU chips to the outside world (PCI and the > like). The chips usually come with their own documentation, which might or > might not be of interest depending on your plans. Documentation for chips > used to live at http://ftp.digital.com/pub/Digital/info/semiconductor/literature/ but I > think that's gone (it's not there right now), and I don't know of any > official replacements which still work (there were some, they're gone too). Try the Wayback Machine... http://web.archive.org/web/20070317053600/http://ftp.digital.com/pub/Digital/info/semiconductor/literature/ Cheers! Keith ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-01 11:29 ` Keith Cayemberg @ 2008-04-06 3:59 ` mattst88 2008-04-06 4:54 ` Tom Linden 0 siblings, 1 reply; 33+ messages in thread From: mattst88 @ 2008-04-06 3:59 UTC (permalink / raw) On Apr 1, 7:29 am, Keith Cayemberg <keith.cayemb...@arcor.de> wrote: > On Mar 27, 11:08 pm, "John Wallace" <johnwalla...@yahoo.spam.co.uk> > wrote: > > > These things define the architecture. Then there are various generations of > > CPU chips which implement the architecture, and various generations of > > support chips which connect the CPU chips to the outside world (PCI and the > > like). The chips usually come with their own documentation, which might or > > might not be of interest depending on your plans. Documentation for chips > > used to live athttp://ftp.digital.com/pub/Digital/info/semiconductor/literature/but I > > think that's gone (it's not there right now), and I don't know of any > > official replacements which still work (there were some, they're gone too). > > Try the Wayback Machine...http://web.archive.org/web/20070317053600/http://ftp.digital.com/pub/... > > Cheers! > > Keith I've made a nice little collection of alpha programming related links on my site: http://mattst88.com/?page=links#alpha Hope you find them useful. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-06 3:59 ` mattst88 @ 2008-04-06 4:54 ` Tom Linden 2008-04-06 20:32 ` mattst88 0 siblings, 1 reply; 33+ messages in thread From: Tom Linden @ 2008-04-06 4:54 UTC (permalink / raw) On Sat, 05 Apr 2008 20:59:43 -0700, <mattst88@gmail.com> wrote: > I've made a nice little collection of alpha programming related links > on my site: http://mattst88.com/?page=links#alpha > Hope you find them useful. In the VMS world SDL was something useful. Why are you posting this here? -- PL/I for OpenVMS www.kednos.com ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-06 4:54 ` Tom Linden @ 2008-04-06 20:32 ` mattst88 2008-04-06 21:05 ` John Wallace ` (2 more replies) 0 siblings, 3 replies; 33+ messages in thread From: mattst88 @ 2008-04-06 20:32 UTC (permalink / raw) On Apr 6, 12:54 am, "Tom Linden" <t...@kednos.company> wrote: > On Sat, 05 Apr 2008 20:59:43 -0700, <matts...@gmail.com> wrote: > > I've made a nice little collection of alpha programming related links > > on my site:http://mattst88.com/?page=links#alpha > > Hope you find them useful. > > In the VMS world SDL was something useful. Why are you posting this here? > > -- > PL/I for OpenVMSwww.kednos.com I'm not sure I understand what you're saying. I posted a collections of relevant links I've gathered about programming for alpha. What did I do wrong? ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-06 20:32 ` mattst88 @ 2008-04-06 21:05 ` John Wallace 2008-04-06 21:13 ` John Wallace 2008-04-07 13:47 ` Tom Linden 2 siblings, 0 replies; 33+ messages in thread From: John Wallace @ 2008-04-06 21:05 UTC (permalink / raw) <mattst88@gmail.com> wrote in message news:19ec7227-cbf1-40ef-91b6-bb6e4bfe18d4@8g2000hse.googlegroups.com... > On Apr 6, 12:54 am, "Tom Linden" <t...@kednos.company> wrote: > > On Sat, 05 Apr 2008 20:59:43 -0700, <matts...@gmail.com> wrote: > > > I've made a nice little collection of alpha programming related links > > > on my site:http://mattst88.com/?page=links#alpha > > > Hope you find them useful. > > > > In the VMS world SDL was something useful. Why are you posting this here? > > > > -- > > PL/I for OpenVMSwww.kednos.com > > I'm not sure I understand what you're saying. > > I posted a collections of relevant links I've gathered about > programming for alpha. What did I do wrong? I've wondered that too. Both of us have tried to help someone whose question was Alpha related although it wasn't specifically VMS related. Your pointers include a selection of Alpha-related stuff from people other than DEC/Compaq/HP, stuff which wasn't in the stuff I posted earlier, stuff which might be helpful to someone looking for techy Alpha stuff (again, not specifically VMS related, but...). Tom's SDL comment may relate to the fact that "your" SDL isn't the same SDL as VMS folks would be expecting? While I'm here: thanks to Keith Cayemberg for the reminder that various incarnations of the DEC ftp site are still available on the Wayback Machine. It can be (very) slow sometimes, but the data does appear to still be there if you actually get a response. My 2c John ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-06 20:32 ` mattst88 2008-04-06 21:05 ` John Wallace @ 2008-04-06 21:13 ` John Wallace 2008-04-07 13:47 ` Tom Linden 2 siblings, 0 replies; 33+ messages in thread From: John Wallace @ 2008-04-06 21:13 UTC (permalink / raw) <mattst88@gmail.com> wrote in message news:19ec7227-cbf1-40ef-91b6-bb6e4bfe18d4@8g2000hse.googlegroups.com... > On Apr 6, 12:54 am, "Tom Linden" <t...@kednos.company> wrote: > > On Sat, 05 Apr 2008 20:59:43 -0700, <matts...@gmail.com> wrote: > > > I've made a nice little collection of alpha programming related links > > > on my site:http://mattst88.com/?page=links#alpha > > > Hope you find them useful. > > > > In the VMS world SDL was something useful. Why are you posting this here? > > > > -- > > PL/I for OpenVMSwww.kednos.com > > I'm not sure I understand what you're saying. > > I posted a collections of relevant links I've gathered about > programming for alpha. What did I do wrong? I've wondered that too. Both of us have tried to help someone whose question was Alpha related although it wasn't specifically VMS related. Your pointers include a selection of Alpha-related stuff from people other than DEC/Compaq/HP, stuff which wasn't in the stuff I posted earlier, stuff which might be helpful to someone looking for techy Alpha stuff (again, not specifically VMS related, but...). Tom's SDL comment may relate to the fact that "your" SDL isn't the same SDL as VMS folks would be expecting? While I'm here: thanks to Keith Cayemberg for the reminder that various incarnations of the DEC ftp site are still available on the Wayback Machine. It can be (very) slow sometimes, but the data does appear to still be there if you actually get a response. My 2c John ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-06 20:32 ` mattst88 2008-04-06 21:05 ` John Wallace 2008-04-06 21:13 ` John Wallace @ 2008-04-07 13:47 ` Tom Linden 2008-04-08 3:27 ` Jeremy Begg 2 siblings, 1 reply; 33+ messages in thread From: Tom Linden @ 2008-04-07 13:47 UTC (permalink / raw) On Sun, 06 Apr 2008 13:32:58 -0700, <mattst88@gmail.com> wrote: > On Apr 6, 12:54 am, "Tom Linden" <t...@kednos.company> wrote: >> On Sat, 05 Apr 2008 20:59:43 -0700, <matts...@gmail.com> wrote: >> > I've made a nice little collection of alpha programming related links >> > on my site:http://mattst88.com/?page=links#alpha >> > Hope you find them useful. >> >> In the VMS world SDL was something useful. Why are you posting this >> here? >> >> -- >> PL/I for OpenVMSwww.kednos.com > > I'm not sure I understand what you're saying. > > I posted a collections of relevant links I've gathered about > programming for alpha. What did I do wrong? Maybe I missed something, but I didn't see anything relevant to VMS and as John mentioned SDL is the language neutral declaration language on VMS. -- PL/I for OpenVMS www.kednos.com ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-07 13:47 ` Tom Linden @ 2008-04-08 3:27 ` Jeremy Begg 2008-04-08 4:57 ` Tom Linden 0 siblings, 1 reply; 33+ messages in thread From: Jeremy Begg @ 2008-04-08 3:27 UTC (permalink / raw) Hello Tom, What you "missed" was that the OP's message was cross-posted to comp.sys.dec and in that newsgroup the focus is more on the hardware than the software. The original request was for any information relevant to programming on Alpha and not necessarily VMS-related. Regards, Jeremy Begg Tom Linden wrote: > On Sun, 06 Apr 2008 13:32:58 -0700, <mattst88@gmail.com> wrote: > >> On Apr 6, 12:54 am, "Tom Linden" <t...@kednos.company> wrote: >> >>> On Sat, 05 Apr 2008 20:59:43 -0700, <matts...@gmail.com> wrote: >>> > I've made a nice little collection of alpha programming related links >>> > on my site:http://mattst88.com/?page=links#alpha >>> > Hope you find them useful. >>> >>> In the VMS world SDL was something useful. Why are you posting this >>> here? >>> >>> -- >>> PL/I for OpenVMSwww.kednos.com >> >> >> I'm not sure I understand what you're saying. >> >> I posted a collections of relevant links I've gathered about >> programming for alpha. What did I do wrong? > > Maybe I missed something, but I didn't see anything relevant to VMS > and as John mentioned SDL is the language neutral declaration language > on VMS. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-08 3:27 ` Jeremy Begg @ 2008-04-08 4:57 ` Tom Linden 2008-04-09 20:23 ` Maciej W. Rozycki 2008-04-10 13:30 ` Bob Koehler 0 siblings, 2 replies; 33+ messages in thread From: Tom Linden @ 2008-04-08 4:57 UTC (permalink / raw) On Mon, 07 Apr 2008 20:27:35 -0700, Jeremy Begg <nospam@vsm.com.au> wrote: > Hello Tom, > What you "missed" was that the OP's message was cross-posted to > comp.sys.dec and in that newsgroup the focus is more on the hardware > than the software. The original request was for any information relevant > to programming on Alpha and not necessarily VMS-related. > Regards, > Jeremy Begg > Hi Jeremy, Fair enough, however, unless you are doing absolute address programming it doesn't make too much sense since the techniques and tools on VMS are very different from that on Tru64 or Linux. At the assembler level you could share techniques I suppose, but then why would anyone want to use an assembly language. -- PL/I for OpenVMS www.kednos.com ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-08 4:57 ` Tom Linden @ 2008-04-09 20:23 ` Maciej W. Rozycki 2008-04-10 1:10 ` Tom Linden 2008-04-10 13:30 ` Bob Koehler 1 sibling, 1 reply; 33+ messages in thread From: Maciej W. Rozycki @ 2008-04-09 20:23 UTC (permalink / raw) On Mon, 7 Apr 2008, Tom Linden wrote: > Fair enough, however, unless you are doing absolute address programming it > doesn't > make too much sense since the techniques and tools on VMS are very different > from > that on Tru64 or Linux. At the assembler level you could share techniques I > suppose, > but then why would anyone want to use an assembly language. Because they are working on the operating system itself for example -- as it was mentioned in this thread a couple of times? Not everything can be done in a high-level language, no matter how moderately it was. Maciej ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-09 20:23 ` Maciej W. Rozycki @ 2008-04-10 1:10 ` Tom Linden 2008-04-10 6:46 ` Michael Kraemer 2008-04-10 18:14 ` Maciej W. Rozycki 0 siblings, 2 replies; 33+ messages in thread From: Tom Linden @ 2008-04-10 1:10 UTC (permalink / raw) On Wed, 09 Apr 2008 13:23:32 -0700, Maciej W. Rozycki <macro@linux-mips.org> wrote: > On Mon, 7 Apr 2008, Tom Linden wrote: > >> Fair enough, however, unless you are doing absolute address programming >> it >> doesn't >> make too much sense since the techniques and tools on VMS are very >> different >> from >> that on Tru64 or Linux. At the assembler level you could share >> techniques I >> suppose, >> but then why would anyone want to use an assembly language. > > Because they are working on the operating system itself for example -- > as > it was mentioned in this thread a couple of times? Not everything can be > done in a high-level language, no matter how moderately it was. > I respectfully disagree, I have done it, and so has IBM and many other companies It does require some extensions to the language, but this is far superior than having to code in assembly or C. > Maciej -- PL/I for OpenVMS www.kednos.com ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-10 1:10 ` Tom Linden @ 2008-04-10 6:46 ` Michael Kraemer 2008-04-10 12:41 ` Tom Linden 2008-04-13 2:12 ` Arne Vajhøj 2008-04-10 18:14 ` Maciej W. Rozycki 1 sibling, 2 replies; 33+ messages in thread From: Michael Kraemer @ 2008-04-10 6:46 UTC (permalink / raw) Tom Linden schrieb: > > I respectfully disagree, I have done it, and so has IBM and many other > companies and how many of them have survived ? The fact that it is doable does not guarantee that it is practical or economically viable. The most successful OSs these days, Windoze and the *ix family are coded in a mixture of C and assembly, AFAIK. > It does require some extensions to the language, but this is far > superior than > having to code in assembly or C. Probably not. See above. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-10 6:46 ` Michael Kraemer @ 2008-04-10 12:41 ` Tom Linden 2008-04-13 2:12 ` Arne Vajhøj 1 sibling, 0 replies; 33+ messages in thread From: Tom Linden @ 2008-04-10 12:41 UTC (permalink / raw) On Wed, 09 Apr 2008 23:46:37 -0700, Michael Kraemer <M.Kraemer@gsi.de> wrote: > Tom Linden schrieb: > >> I respectfully disagree, I have done it, and so has IBM and many >> other companies > > and how many of them have survived ? > The fact that it is doable does not guarantee > that it is practical or economically viable. > The most successful OSs these days, > Windoze and the *ix family are coded in > a mixture of C and assembly, AFAIK. That is correct, I guess only IBM's OS's are in higher level, these days, z/os in PL/S and HAL, AIX in PL.8 and C and AS400 in ? > >> It does require some extensions to the language, but this is far >> superior than >> having to code in assembly or C. > > Probably not. See above. What I meant by that was the cost to develop and to maintain is much lower. > -- PL/I for OpenVMS www.kednos.com ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-10 6:46 ` Michael Kraemer 2008-04-10 12:41 ` Tom Linden @ 2008-04-13 2:12 ` Arne Vajhøj 1 sibling, 0 replies; 33+ messages in thread From: Arne Vajhøj @ 2008-04-13 2:12 UTC (permalink / raw) Michael Kraemer wrote: > Tom Linden schrieb: >> I respectfully disagree, I have done it, and so has IBM and many >> other companies > > and how many of them have survived ? > The fact that it is doable does not guarantee > that it is practical or economically viable. > The most successful OSs these days, > Windoze and the *ix family are coded in > a mixture of C and assembly, AFAIK. Sometimes it is difficult to precise define what is OS and what is apps. If you choose a broad definition of OS for Windows, then there are a lot of C++ stuff as well. >> It does require some extensions to the language, but this is far >> superior than >> having to code in assembly or C. > > Probably not. See above. It could be. I am not convinced that maintainability of the code is the most important factor for an OS's success. Arne ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-10 1:10 ` Tom Linden 2008-04-10 6:46 ` Michael Kraemer @ 2008-04-10 18:14 ` Maciej W. Rozycki 1 sibling, 0 replies; 33+ messages in thread From: Maciej W. Rozycki @ 2008-04-10 18:14 UTC (permalink / raw) On Wed, 9 Apr 2008, Tom Linden wrote: > > Because they are working on the operating system itself for example -- as > > it was mentioned in this thread a couple of times? Not everything can be > > done in a high-level language, no matter how moderately it was. > > > > I respectfully disagree, I have done it, and so has IBM and many other > companies > It does require some extensions to the language, but this is far superior than > having to code in assembly or C. In most cases it is unavoidable to use the assembly language in places that do not conform to any kind of ABI, like non-maskable interrupt or exception handlers where frequently most of the processor general registers have to be preserved and are thus unusable for the compiler; also the access to some privileged resources (e.g. the cache or the TLB) may require hardware instructions that are not emitted from any kind of higher-level language. Though obviously a lot depends on the exact architecture of the CPU -- certainly with processors I dealt with so far it was completely unfeasible to design a dedicated high-level language for the sole purpose of avoiding the three or four assembly-language source files in the whole port of a kernel for a given architecture, worth a couple of hundred processor instructions each at the very most. Anyway, you do want to know details of the architecture when porting an OS regardless of how many lines of assembly code you will have to write if any. Maciej ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-08 4:57 ` Tom Linden 2008-04-09 20:23 ` Maciej W. Rozycki @ 2008-04-10 13:30 ` Bob Koehler 2008-04-10 13:19 ` Richard B. Gilbert 1 sibling, 1 reply; 33+ messages in thread From: Bob Koehler @ 2008-04-10 13:30 UTC (permalink / raw) In article <op.t9devdvzhv4qyg@murphus.hsd1.ca.comcast.net>, "Tom Linden" <tom@kednos.company> writes: > > I respectfully disagree, I have done it, and so has IBM and many other > companies > It does require some extensions to the language, but this is far superior > than > having to code in assembly or C. > Poor fools, obviously should have been writing in BLIS. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-10 13:30 ` Bob Koehler @ 2008-04-10 13:19 ` Richard B. Gilbert 0 siblings, 0 replies; 33+ messages in thread From: Richard B. Gilbert @ 2008-04-10 13:19 UTC (permalink / raw) Bob Koehler wrote: > In article <op.t9devdvzhv4qyg@murphus.hsd1.ca.comcast.net>, "Tom Linden" <tom@kednos.company> writes: >> I respectfully disagree, I have done it, and so has IBM and many other >> companies >> It does require some extensions to the language, but this is far superior >> than >> having to code in assembly or C. >> > > Poor fools, obviously should have been writing in BLIS. > Did you mean BLISS? ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-27 19:02 System Programming Resources for Alpha Architecture The-Grue 2008-03-27 21:08 ` John Wallace @ 2008-03-27 21:34 ` Tom Linden 2008-03-29 12:10 ` Neil Rieck 2 siblings, 0 replies; 33+ messages in thread From: Tom Linden @ 2008-03-27 21:34 UTC (permalink / raw) On Thu, 27 Mar 2008 12:02:00 -0700, <The-Grue@hotmail.com> wrote: > Does anyone know of any good resources for System Programming / OS > Development / OS Porting to Alpha Architecture? Books, ebooks, or > sites online would be a big help. Thanks in advance! > > James T. Sprinkle (The Grue) > http://www.myspace.com/jamestsprinkle PL/I is a great systems programmimng language and there a number of examples on http://www.kednos.com/ click on the link to Examples -- PL/I for OpenVMS www.kednos.com ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-27 19:02 System Programming Resources for Alpha Architecture The-Grue 2008-03-27 21:08 ` John Wallace 2008-03-27 21:34 ` Tom Linden @ 2008-03-29 12:10 ` Neil Rieck 2008-03-29 14:00 ` Phillip Helbig---remove CLOTHES to reply 2008-03-30 0:22 ` Maciej W. Rozycki 2 siblings, 2 replies; 33+ messages in thread From: Neil Rieck @ 2008-03-29 12:10 UTC (permalink / raw) On Mar 27, 3:02 pm, The-G...@hotmail.com wrote: > Does anyone know of any good resources for System Programming / OS > Development / OS Porting to Alpha Architecture? Books, ebooks, or > sites online would be a big help. Thanks 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. Having said that, look at these two books. http://www.theminimumyouneedtoknow.com/openvms_application_developer_book.html "Writing VAX/VMS Applications Using Pascal" which is out of print but can sometimes be found a used bookseller sites like www.bookfinder.com Neil Rieck Kitchener/Waterloo/Cambridge, Ontario, Canada. http://www3.sympatico.ca/n.rieck/links/openvms_demos.html http://www3.sympatico.ca/n.rieck/docs/alpha_diary.html (porting info) http://www3.sympatico.ca/n.rieck/docs/hacking_OpenVMS_starlet.html http://www3.sympatico.ca/n.rieck/links/cool_openvms.html ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-29 12:10 ` Neil Rieck @ 2008-03-29 14:00 ` Phillip Helbig---remove CLOTHES to reply 2008-03-29 16:29 ` Neil Rieck 2008-03-29 18:29 ` JF Mezei 2008-03-30 0:22 ` Maciej W. Rozycki 1 sibling, 2 replies; 33+ messages in thread From: Phillip Helbig---remove CLOTHES to reply @ 2008-03-29 14:00 UTC (permalink / raw) In article <f9d866e9-0876-40c3-ac1e-1c74220d1914@k13g2000hse.googlegroups.com>, Neil Rieck <n.rieck@sympatico.ca> 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). ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-29 14:00 ` Phillip Helbig---remove CLOTHES to reply @ 2008-03-29 16:29 ` Neil Rieck 2008-03-29 17:17 ` Richard B. Gilbert 2008-03-29 18:29 ` JF Mezei 1 sibling, 1 reply; 33+ messages in thread From: Neil Rieck @ 2008-03-29 16:29 UTC (permalink / raw) On Mar 29, 10:00 am, hel...@astro.multiCLOTHESvax.de (Phillip Helbig--- remove CLOTHES to reply) wrote: > In article > <f9d866e9-0876-40c3-ac1e-1c74220d1...@k13g2000hse.googlegroups.com>, > > Neil Rieck <n.ri...@sympatico.ca> 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 ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-29 16:29 ` Neil Rieck @ 2008-03-29 17:17 ` Richard B. Gilbert 2008-04-13 2:08 ` Arne Vajhøj 0 siblings, 1 reply; 33+ messages in thread From: Richard B. Gilbert @ 2008-03-29 17:17 UTC (permalink / raw) Neil Rieck wrote: > On Mar 29, 10:00 am, hel...@astro.multiCLOTHESvax.de (Phillip Helbig--- > remove CLOTHES to reply) wrote: > >>In article >><f9d866e9-0876-40c3-ac1e-1c74220d1...@k13g2000hse.googlegroups.com>, >> >>Neil Rieck <n.ri...@sympatico.ca> 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 > ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-29 17:17 ` Richard B. Gilbert @ 2008-04-13 2:08 ` Arne Vajhøj 2008-04-13 3:16 ` Richard B. Gilbert 2008-04-13 4:12 ` JF Mezei 0 siblings, 2 replies; 33+ messages in thread From: Arne Vajhøj @ 2008-04-13 2:08 UTC (permalink / raw) Richard B. Gilbert wrote: > Neil Rieck wrote: >> 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! No - developers are (or should be) paid to produce readable and maintainable code - not to demonstrate their wizard capabilities. Arne ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-13 2:08 ` Arne Vajhøj @ 2008-04-13 3:16 ` Richard B. Gilbert 2008-04-13 4:12 ` JF Mezei 1 sibling, 0 replies; 33+ messages in thread From: Richard B. Gilbert @ 2008-04-13 3:16 UTC (permalink / raw) Arne Vajh�j wrote: > Richard B. Gilbert wrote: >> Neil Rieck wrote: >>> 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! > > No - developers are (or should be) paid to produce readable and > maintainable code - not to demonstrate their wizard capabilities. > It depends, strongly, on what is needed. In this case better performance was needed without upgrading the hardware. That sort of hand optimization is rarely done now but in years gone by, programmers earned their money by doing that sort of thing. There was NO SUCH THING as faster hardware unless you were willing to wait a few years for it to be developed! Things are different now. I have more computing power, and disk storage, at my disposal today and in my own home, than Princeton University had thirty years ago. Today's hardware is massively improved over the hardware of thirty years ago. Today's compilers are much better at optimization than programmers are. I've never had any objection to hand optimized code. If it's done, it needs to be documented because someone will have to maintain it. It's largely a dead issue now. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-13 2:08 ` Arne Vajhøj 2008-04-13 3:16 ` Richard B. Gilbert @ 2008-04-13 4:12 ` JF Mezei 2008-04-13 16:46 ` Arne Vajhøj 1 sibling, 1 reply; 33+ messages in thread From: JF Mezei @ 2008-04-13 4:12 UTC (permalink / raw) Arne Vajh�j wrote: > No - developers are (or should be) paid to produce readable and > maintainable code - not to demonstrate their wizard capabilities. In what universe/century do you live in ? When you look at web developpers, it is very clear that they are paid to demonstrate their capabilities to use every possible overly complex trick to simulate a very simple HTML functions (such as the submit button that is all to often overriden by some complex javascript). ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-04-13 4:12 ` JF Mezei @ 2008-04-13 16:46 ` Arne Vajhøj 0 siblings, 0 replies; 33+ messages in thread From: Arne Vajhøj @ 2008-04-13 16:46 UTC (permalink / raw) JF Mezei wrote: > Arne Vajh�j wrote: >> No - developers are (or should be) paid to produce readable and >> maintainable code - not to demonstrate their wizard capabilities. > > In what universe/century do you live in ? > > When you look at web developpers, it is very clear that they are paid to > demonstrate their capabilities to use every possible overly complex > trick to simulate a very simple HTML functions (such as the submit > button that is all to often overriden by some complex javascript). If they run JavaScript at submit for no good reason, then they are no doing their job. But in the AJAX world it often makes sense to run JavaScript at submit. Arne ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-29 14:00 ` Phillip Helbig---remove CLOTHES to reply 2008-03-29 16:29 ` Neil Rieck @ 2008-03-29 18:29 ` JF Mezei 1 sibling, 0 replies; 33+ messages in thread From: JF Mezei @ 2008-03-29 18:29 UTC (permalink / raw) Phillip Helbig---remove CLOTHES to reply wrote: > 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. Or perhaps the original poster had meant porting something from Unix on 8086 or other platform to VMS on Alpha. the answer to the above question would be: http://www.hp.com/go/vms/doc and then look for the VMS (they use the term OpenVMS at HP because they dropped the trademark for "VMS") System Services manual. There is also the run time library, you will want a look at the LIB$ routines. There is also a VMS programming concepts manual (does it still exist) which explains many of the constructs used by VMS (time formats, the string descriptors, item lists etc etc) ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-29 12:10 ` Neil Rieck 2008-03-29 14:00 ` Phillip Helbig---remove CLOTHES to reply @ 2008-03-30 0:22 ` Maciej W. Rozycki 2008-03-30 10:26 ` John Wallace 1 sibling, 1 reply; 33+ messages in thread From: Maciej W. Rozycki @ 2008-03-30 0:22 UTC (permalink / raw) [-- Attachment #1: Type: TEXT/PLAIN, Size: 1060 bytes --] On Sat, 29 Mar 2008, Neil Rieck wrote: > > Does anyone know of any good resources for System Programming / OS > > Development / OS Porting to Alpha Architecture? Books, ebooks, or > > sites online would be a big help. Thanks 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. Well, I think "System Programming / OS Development / OS Porting" makes it pretty much clear it is not application programming that is in question here. I have yet to see an operating system that does not require any platform-specific code, including handwritten assembly. And then even higher-level language OS code may require knowledge of processor-specific details, like architecture of the register file or the TLB. Resources mentioned elsewhere in this thread should be good enough though. Maciej ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-30 0:22 ` Maciej W. Rozycki @ 2008-03-30 10:26 ` John Wallace 2008-03-31 20:47 ` The-Grue 0 siblings, 1 reply; 33+ messages in thread From: John Wallace @ 2008-03-30 10:26 UTC (permalink / raw) "Maciej W. Rozycki" <macro@linux-mips.org> wrote in message news:alpine.SOC.1.00.0803300006500.26418@piorun... > Well, I think "System Programming / OS Development / OS Porting" makes it >pretty much clear it is not application programming that is in question >here. I have yet to see an operating system that does not require any >platform-specific code, including handwritten assembly. And then even >higher-level language OS code may require knowledge of processor-specific >details, like architecture of the register file or the TLB. Resources >mentioned elsewhere in this thread should be good enough though. > Maciej Quite. You and I might think that but for some reason we seem to be in a minority here. Some clarification from the original contributor would be welcome in due course, but in the absence of that, his reference to Minix on his Myspace page gives a possible hint that perhaps we're not necessarily looking at traditional application porting here... ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-30 10:26 ` John Wallace @ 2008-03-31 20:47 ` The-Grue 2008-03-31 22:27 ` johnwallace4 0 siblings, 1 reply; 33+ messages in thread From: The-Grue @ 2008-03-31 20:47 UTC (permalink / raw) On Mar 30, 3:26 am, "John Wallace" <johnwalla...@yahoo.spam.co.uk> wrote: > "Maciej W. Rozycki" <ma...@linux-mips.org> wrote in messagenews:alpine.SOC.1.00.0803300006500.26418@piorun... > > > Well, I think "System Programming / OS Development / OS Porting" makes it > >pretty much clear it is not application programming that is in question > >here. I have yet to see an operating system that does not require any > >platform-specific code, including handwritten assembly. And then even > >higher-level language OS code may require knowledge of processor-specific > >details, like architecture of the register file or the TLB. Resources > >mentioned elsewhere in this thread should be good enough though. > > > Maciej > > Quite. You and I might think that but for some reason we seem to be in a > minority here. Some clarification from the original contributor would be > welcome in due course, but in the absence of that, his reference to Minix on > his Myspace page gives a possible hint that perhaps we're not necessarily > looking at traditional application porting here... Hi! Thanks for all of the replies. I was looking at porting Minix to another platform for my Master's project. I guess I should have stated that up front as some folks went off on the application porting tangent. I am looking into the links and resources that some of you posted. I have several choices of platform and a bit of time to make the decision, so nothing is firm about Alpha yet or even if an OS port would be an acceptable project. <shrug> Thanks again! James T. Sprinkle (The Grue) http://www.myspace.com/jamestsprinkle ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: System Programming Resources for Alpha Architecture 2008-03-31 20:47 ` The-Grue @ 2008-03-31 22:27 ` johnwallace4 0 siblings, 0 replies; 33+ messages in thread From: johnwallace4 @ 2008-03-31 22:27 UTC (permalink / raw) On Mar 31, 9:47 pm, The-G...@hotmail.com wrote: > On Mar 30, 3:26 am, "John Wallace" <johnwalla...@yahoo.spam.co.uk> > wrote: > > > > > "Maciej W. Rozycki" <ma...@linux-mips.org> wrote in messagenews:alpine.SOC.1.00.0803300006500.26418@piorun... > > > > Well, I think "System Programming / OS Development / OS Porting" makes it > > >pretty much clear it is not application programming that is in question > > >here. I have yet to see an operating system that does not require any > > >platform-specific code, including handwritten assembly. And then even > > >higher-level language OS code may require knowledge of processor-specific > > >details, like architecture of the register file or the TLB. Resources > > >mentioned elsewhere in this thread should be good enough though. > > > > Maciej > > > Quite. You and I might think that but for some reason we seem to be in a > > minority here. Some clarification from the original contributor would be > > welcome in due course, but in the absence of that, his reference to Minix on > > his Myspace page gives a possible hint that perhaps we're not necessarily > > looking at traditional application porting here... > > Hi! Thanks for all of the replies. I was looking at porting Minix to > another platform for my Master's project. I guess I should have > stated that up front as some folks went off on the application porting > tangent. I am looking into the links and resources that some of you > posted. I have several choices of platform and a bit of time to make > the decision, so nothing is firm about Alpha yet or even if an OS port > would be an acceptable project. <shrug> Thanks again! > > James T. Sprinkle (The Grue)http://www.myspace.com/jamestsprinkle Thanks for the update. Now I know what you're potentially up to, I can fill in some accidental omissions from my first reply, apologies if the gapfilling is now unnecessary, and good luck with the Minix->Alpha port if you do go ahead! I mentioned chips without going into enough detail for you to reasonably easily find more info; it's out there, but you may need a few pointers. The first commercially available Alpha chip was the 21064 aka EV4. The next generation was the 21164 aka EV5, then 21264 aka EV6. The support chips had a similar numbering sequence - 21071, 21171, etc - the support chips might not be of interest to you if you are prepared to "be inspired by" code from BSD or Linux rather than work out from hardware docs. These chips were available on the "commodity" semiconductor market and have the level of published documentation required for someone building systems at that level. You can find many of the relevant earlier docs at ftp://ftp.netbsd.org/pub/NetBSD/misc/dec-docs/index.html - unfortunately, later ones (eg for EV6/21264) will take a bit more finding if you're interested (which you may not be, as these didn't really hit what might be called the "commodity" market in any worthwhile manner, even though it would have been technically quite possible, as anyone who's seen the innards of a DS10 will know). A 30-page April 2000 Compaq-badged technical overview of EV6 and EV6- based systems ("Exploring Alpha Power For Technical Computing") can be found at http://www.cs.virginia.edu/~dp8x/alpha21264/overview/wp_alpha_tech_apr00.pdf There are/were more recent Alpha chips (EV7, and a bit of EV8) but they're probably not all that relevant to your exercise and didn't come with the same level of published hardware documentation. One other that you might want to look at depending on your interests is DIGITAL's 1999 "Alpha vs IA64 performance and parallelism" whitepaper which offers an interesting comparison of performance based on out of order execution on Alpha (and as still used by today's x86/ AMD64) vs performance based on EPIC/VLIW on IA64. Obviously it's no longer available from DEC/CPQ/HP, but it's still out there on the Interweb, e.g. at http://www.cs.trinity.edu/~mlewis/CSCI3294-F01/Papers/alpha_ia64.pdf (and hopefully elsewhere). Have fun with the project anyway, John ^ permalink raw reply [flat|nested] 33+ messages in thread
end of thread, other threads:[~2008-04-13 16:46 UTC | newest] Thread overview: 33+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-27 19:02 System Programming Resources for Alpha Architecture The-Grue 2008-03-27 21:08 ` John Wallace 2008-04-01 11:29 ` Keith Cayemberg 2008-04-06 3:59 ` mattst88 2008-04-06 4:54 ` Tom Linden 2008-04-06 20:32 ` mattst88 2008-04-06 21:05 ` John Wallace 2008-04-06 21:13 ` John Wallace 2008-04-07 13:47 ` Tom Linden 2008-04-08 3:27 ` Jeremy Begg 2008-04-08 4:57 ` Tom Linden 2008-04-09 20:23 ` Maciej W. Rozycki 2008-04-10 1:10 ` Tom Linden 2008-04-10 6:46 ` Michael Kraemer 2008-04-10 12:41 ` Tom Linden 2008-04-13 2:12 ` Arne Vajhøj 2008-04-10 18:14 ` Maciej W. Rozycki 2008-04-10 13:30 ` Bob Koehler 2008-04-10 13:19 ` Richard B. Gilbert 2008-03-27 21:34 ` Tom Linden 2008-03-29 12:10 ` Neil Rieck 2008-03-29 14:00 ` Phillip Helbig---remove CLOTHES to reply 2008-03-29 16:29 ` Neil Rieck 2008-03-29 17:17 ` Richard B. Gilbert 2008-04-13 2:08 ` Arne Vajhøj 2008-04-13 3:16 ` Richard B. Gilbert 2008-04-13 4:12 ` JF Mezei 2008-04-13 16:46 ` Arne Vajhøj 2008-03-29 18:29 ` JF Mezei 2008-03-30 0:22 ` Maciej W. Rozycki 2008-03-30 10:26 ` John Wallace 2008-03-31 20:47 ` The-Grue 2008-03-31 22:27 ` johnwallace4
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox