comp.lang.ada
 help / color / mirror / Atom feed
* compiling for sparc64
@ 2009-08-29  8:53 Allison Phillips
  2009-08-29 14:45 ` Ludovic Brenta
  0 siblings, 1 reply; 3+ messages in thread
From: Allison Phillips @ 2009-08-29  8:53 UTC (permalink / raw)


I have a linux-i686 pc and i need to cross compile a program with gnat to
a sparc64-freebsd target.
are there some parameters for the compiler? 
i searched in google and in the old messages of this newsgroup, but no
answers.
i don't need to have a sparc64 version of gnat, only the compiled program.

-- 

questo articolo e` stato inviato via web dal servizio gratuito 
http://www.newsland.it/news segnala gli abusi ad abuse@newsland.it





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: compiling for sparc64
  2009-08-29  8:53 compiling for sparc64 Allison Phillips
@ 2009-08-29 14:45 ` Ludovic Brenta
  2009-08-29 14:57   ` Ludovic Brenta
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Brenta @ 2009-08-29 14:45 UTC (permalink / raw)


Allison Phillips wrote on comp.lang.ada:
> I have a linux-i686 pc and i need to cross compile a program with gnat to
> a sparc64-freebsd target.
> are there some parameters for the compiler?
> i searched in google and in the old messages of this newsgroup, but no
> answers.
> i don't need to have a sparc64 version of gnat, only the compiled program.

You need to build a cross-compiler from the gnat sources.  GCC
requires the native and cross compilers to be from the same sources;
therefore you have to build your cross-compiler from the exact same
sources as your native compiler.

To build a cross-compiler, follow the installation instructions[1],
passing --target=sparc64-freebsd to ../src/configure.

[1] http://gcc.gnu.org/install/

HTH

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: compiling for sparc64
  2009-08-29 14:45 ` Ludovic Brenta
@ 2009-08-29 14:57   ` Ludovic Brenta
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Brenta @ 2009-08-29 14:57 UTC (permalink / raw)


Ludovic Brenta wrote on comp.lang.ada:
> To build a cross-compiler, follow the installation instructions[1],
> passing --target=sparc64-freebsd to ../src/configure.

I feel I have to add to this... All UltraSPARC processors since circa
1994 are 64-bit but can also run 32-bit code natively. There is a
memory and performance cost with running 64-bit code because the
larger addresses take more room in the cache. For this reason, on
Solaris, Sun recommends that applications that can work within 4 GiB
be compiled in 32-bit mode.  The norm is a 64-bit kernel running
multiple 32-bit apps and a few large 64-bit apps that absolutely
require the large address space and trade some performance for it.
You may want to check whether that also applies to FreeBSD or not.

GCC supports both sparc and sparc64.

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-29 14:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-29  8:53 compiling for sparc64 Allison Phillips
2009-08-29 14:45 ` Ludovic Brenta
2009-08-29 14:57   ` Ludovic Brenta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox