Page 1 of 1
Itanium architecture
Posted: Sun Jan 11, 2009 2:23 pm
by Love4Boobies
Has anyone ever tried writing for the Itanium architecture? It's quite fascinating, I've started reading on it. Do you know of any good compilers for it (except for Intel who I bet has one).
Re: Itanium architecture
Posted: Sun Jan 11, 2009 3:50 pm
by Hangin10
I don't know much about it, but I read somewhere that GCC supports it as a target (and as host?)
and even that it generates better code than Intel's compiler.
Re: Itanium architecture
Posted: Sun Jan 11, 2009 3:53 pm
by Love4Boobies
Hangin10 wrote:(and as host?)
That would be no surpise -- it's the OS that needs to support the Itanium, not the compiler itself. I was only curious about the generated code.
Re: Itanium architecture
Posted: Mon Jan 12, 2009 11:13 am
by Love4Boobies
Maybe Brendan will have something to say about this? (heh)
Re: Itanium architecture
Posted: Mon Jan 12, 2009 9:59 pm
by Brendan
Hi,
Love4Boobies wrote:Maybe Brendan will have something to say about this? (heh)
Sure..
AFAIK Linux fully supports Itanium, and so does GCC and it's related tools (LD, OBJDUMP, etc), including support for EFI.
I looked into Itanium several years ago, and I don't think much has changed since. Unlike 80x86 CPUs, the instructions are meant to be scheduled by the compiler, and the CPU doesn't reschedule them. This means compiler optimization are very important, and CPU manufacturers can't easily change the behavior of the CPU (e.g. a performance improvement may mess up the timing that compilers expect, and give worse performance due to instruction scheduling differences).
IMHO for an OS developer there's 3 main problems:
- getting enough useful documentation (e.g. it's not like 80x86 where there's tutorials and examples everywhere)
- getting test machines. I couldn't find any emulator that will emulate an Itanium, except for one expensive/slow proprietory simulator that is mainly intended to simulate the electronics rather than emulate the instructions. Real Itanium machines are expensive, and you won't find old ones on eBay for $100. Also, for all OSs on any architecture you want a variety of test computers because some bugs just don't show up on some computers. I'd expect to pay over $10000 ($au) just for three test machines (but I wouldn't assume that 3 different computers is enough variety).
- getting people to use/test your OS. Currently, almost everyone who's using Itaniums are using them for high-end servers, and probably don't even want to upgrade the OS they're already using in case it costs them too much downtime. That means people willing to test your OS would be extremely rare, and when the OS is completely finished it'd need to be very reliable (and probably support heaps of fault tolerance and redundancy features) before existing Itanium users consider using your OS on their servers.
I'd also assume that Intel did most of the work getting Linux to support Itanium, because Intel do a lot of work on Linux anyway and it'd help sales.
Cheers,
Brendan
Re: Itanium architecture
Posted: Tue Jan 13, 2009 7:33 am
by LMN
I think the emulator Brendan speeks of is SKI ([url]ski.sourceforge.net[/url]. But its of no real use for OS dev. Maybe you have a look at ARM or MIPS. The have both good emulators and hardware(at least ARM) available. And of course their different flavours are supported by GCC.
Re: Itanium architecture
Posted: Tue Jan 13, 2009 7:36 am
by Love4Boobies
As far as MIPS goes, I am currently also studying the POWER architecture (somewhat).
Re: Itanium architecture
Posted: Tue Jan 13, 2009 9:00 am
by jal
Hangin10 wrote:I don't know much about it, but I read somewhere that GCC (...) generates better code than Intel's compiler.
Then the authors of what you read are also quite unknowledgeable. It's common knowledge the Intel compilers are far superior to GCC.
JAL
Re: Itanium architecture
Posted: Tue Jan 13, 2009 9:01 am
by jal
Love4Boobies wrote:As far as MIPS goes, I am currently also studying the POWER architecture (somewhat).
Eerr... what do you mean to say? In a thread about dogs: "As far as cats go, I am currently also studying horses".
JAL
Re: Itanium architecture
Posted: Tue Jan 13, 2009 9:08 am
by LMN
\begin{offtopic}
jal wrote:Love4Boobies wrote:
As far as MIPS goes, I am currently also studying the POWER architecture (somewhat).
Eerr... what do you mean to say? In a thread about dogs: "As far as cats go, I am currently also studying horses".
It's a great associative chain
.
\end{offtopic}