From: "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: System Programming Resources for Alpha Architecture
Date: Thu, 10 Apr 2008 19:14:45 +0100 [thread overview]
Message-ID: <alpine.SOC.1.00.0804101855580.2788@piorun.ds.pg.gda.pl> (raw)
In-Reply-To: <op.t9devdvzhv4qyg@murphus.hsd1.ca.comcast.net>
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
next prev parent reply other threads:[~2008-04-10 18:14 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox