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!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!news.task.gda.pl!task-filter!not-for-mail From: "Maciej W. Rozycki" Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: System Programming Resources for Alpha Architecture Date: Thu, 10 Apr 2008 19:14:45 +0100 Organization: CI TASK http://www.task.gda.pl/ Message-ID: References: <9401833e-f8d0-4c00-a7f7-82e0b81dc840@p25g2000hsf.googlegroups.com> <13uo36qbcl0ldec@corp.supernews.com> <19ec7227-cbf1-40ef-91b6-bb6e4bfe18d4@8g2000hse.googlegroups.com> NNTP-Posting-Host: piorun.ds.pg.gda.pl Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news2.task.gda.pl 1207851285 11370 153.19.208.8 (10 Apr 2008 18:14:45 GMT) X-Complaints-To: abuse@news.task.gda.pl NNTP-Posting-Date: Thu, 10 Apr 2008 18:14:45 +0000 (UTC) X-Notice1: This post has been postprocessed on the news.task.gda.pl server. In-Reply-To: X-Path-Original: piorun.ds.pg.gda.pl!macro User-Agent: Alpine 1.00 (SOC 882 2007-12-20) Xref: g2news1.google.com comp.os.vms:73180 comp.sys.dec:4397 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