Subject: Re: -040 compiles...
To: None <jehamby@lightside.com>
From: Niklas Hallqvist <niklas@appli.se>
List: amiga
Date: 11/30/1995 08:37:28
>>>>> "Jake" == Jake Hamby <jehamby@lightside.com> writes:
Jake> On Wed, 29 Nov 1995, bjorn svensson wrote:
>> On Nov 28, 9:23am, Peter Seebach wrote:
>>
>> > I'm hoping to start testing gcc-2.7.1 and gas-2.6 on my system to
>> see > if there are still problems.
>>
>> Do you know if someone is porting gnat for NetBSD?
>>
>> /Bjorn
Jake> The problem with GNAT 2 is that it is written in itself (Ada 95)
Jake> so that it is EXTREMELY difficult to port it to another system
Jake> without first building some sort of cross-compiler on a system
Jake> that already has GNAT, such as a Sun or maybe a Linux box. As a
Jake> cross compiler is quite difficult to set up correctly, and GNAT
Jake> itself takes many hours to compile, even on the fastest machine,
Jake> it is currently a quite tedious proposition. Not to mention
Jake> that you would have to repeat the process, and slightly
Jake> differently, for every NetBSD architecture (again, because it's
Jake> written in Ada and not C, you can't just patch the source and
Jake> compile).
Though I know nothing about GNAT, I know a bit of setting up
cross-compilers. If the host and target architectures are both known
to the tools (compiler, linker, assembler, other binutils), and if you
have includes and libs available, it's not very complex. I've put in
NetBSD support in the FSF tools and played around little with
cross-compilations. The only thing I know of which isn't supported
today, is the generation of dynamic NetBSD binaries, which would be
nice to have, but not essential. I'd like to add that support at some
time but have too little time now.
So, go for it, a cross-compilation environment shouldn't be too hard,
IMO. Unless of course GNAT itself is hard to setup as a
cross-compiler, which I doubt, knowing Kenner is involved in GNAT.
Niklas
Niklas Hallqvist Phone: +46-(0)31-40 75 00 Home: +46-(0)31-41 93 95
Applitron Datasystem Fax: +46-(0)31-83 39 50 Home: +46-(0)31-41 93 96
Molndalsvagen 95 Email: niklas@appli.se GSM: +46-(0)70-714 10 35
S-412 63 GOTEBORG WWW: Here
Sweden IRC: niklas (#NetBSD) ICB: niklas (netbsd)