I need to compile my code for Itanium, but it seems that all of the compilers (ecc, gcc, orc) require an Itanium machine to do so. Any suggestions?
-
How are you going to test the executable? – mmmmmm Jan 26 '13 at 13:56
-
9Er, gcc can be a cross-compiler, what's the problem? – Marc Glisse Jan 26 '13 at 13:56
-
@Mark, I am, but on a simulator: IATO – Parsa Jan 26 '13 at 13:57
-
Can't the simulator run the compiler ? However the cross compilation is probably better – mmmmmm Jan 26 '13 at 13:58
-
No it can't, I need to compile it on my own. – Parsa Jan 26 '13 at 14:00
3 Answers
You need to set gcc up as a cross compiler. This involves building binutils and gcc yourself.
The IA64wiki at http://www.gelato.unsw.edu.au/IA64wiki/CrossCompilation has a tutorial on how to set this up.

- 16,083
- 3
- 46
- 62
-
4There used to be a script collection called `crosstool` that would take care of all the downloading and building of the myriad utilities and libraries for cross compilation... – Kerrek SB Jan 26 '13 at 14:14
I can only tell how I did it, perhaps not the best way or best tools.
I developed a very small priority-based Itanium kernel and test tasks long time ago. I started to develop it again (demand paging, fork system call...). The last time I compiled it is a week ago.
What I found is that compiling a cross compiler is a very hard task nowadays for IA64. And to get gcc and binutils to work together is an other problem. I tried many times compile cross compiler and binutils - no success). It seems that Itanium support has been forgotten, at least very much worse than some years again.
However, I found packages for the cross compiler, binutils and ski simulator binary. All starts working immediately (well, ski does not show TLB info).
I have Ubuntu 12, Linux kernel 3.2 AMD64
How to find the tools:
- Ski:
- Ubuntu Sotfware Center: Ski/IA-64 instruction set simulator (binary)
- Cross tools (work together!):
- gcc-ia64-linux-gnu-4.7.1-0.1.20120606.fc18.1.x86_64.rpm
- binutils-ia64-linux-gnu-2.22.52.0.3-3.fc18.x86_64.rpm
My web page: http://www.isosika.net/
(Hmm... I compiled the Kernel, I think that application library support can be bad or non existent?)
-
there is lots of application support, see the debian ia64 port: https://www.debian.org/ports/ia64/ – Janus Troelsen Aug 05 '15 at 12:02
There's Itanium version of Windows, so of course Visual studio can generate code for Itanium

- 37,963
- 15
- 156
- 475
-
-
I didn't mention any version. Neither did the OP. That means at least one version of MSVC supported Itanium – phuclv Jun 28 '15 at 13:50
-
Visual Studio 2010 is the last version to support Itanium according to http://www.infoq.com/news/2010/04/Itanium-Dropped – Janus Troelsen Aug 05 '15 at 11:59
-