comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: FSF GNAT on Mac OS X Snow Leopard, does it exist?
Date: Tue, 16 Mar 2010 20:50:43 +0000
Date: 2010-03-16T20:50:43+00:00	[thread overview]
Message-ID: <m2fx40ng7w.fsf@pushface.org> (raw)
In-Reply-To: e6d3b086-0253-40b5-87d0-bfb7078f3df6@u19g2000prh.googlegroups.com

Jerry <lanceboyle@qwest.net> writes:

> On Mar 15, 3:09�pm, Simon Wright <si...@pushface.org> wrote:
>> If you go to http://sourceforge.net/projects/gnuada/files/and navigate
>> to GNAT_GPL Mac OS X > 2009-snow-leopard you'll find 64- and 32-bit
>> compilers.
>
> Sorry if these questions have been asked before.
>
> (1) Do either of these compilers work with Xcode?
>     (a) If so, which one(s) and what version of Xcode?

I don't know, but wouldn't it have to be Xcode 3.2 for SL?

> (2) Do either of these compilers work with the debugger gdb?
>     (a) If so, is it included with the download?

Certainly the x86_64 compiler works with Apple's gdb (presumably from
Xcode 3.2?):

   $ gdb ./zero_length_string
   GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009)
   Copyright 2004 Free Software Foundation, Inc.
   GDB is free software, covered by the GNU General Public License, and you are
   welcome to change it and/or distribute copies of it under certain conditions.
   Type "show copying" to see the conditions.
   There is absolutely no warranty for GDB.  Type "show warranty" for details.
   This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done

   (gdb) b zero_length_string.adb:5
   Breakpoint 1 at 0x100001e7b: file zero_length_string.adb, line 5.
   (gdb) run
   Starting program: /Users/simon/tmp/zero_length_string 
   Reading symbols for shared libraries ++. done

   Breakpoint 1, _ada_zero_length_string () at zero_length_string.adb:5
   5	   Put_Line ("S is """
   (gdb) p s
   $1 = ""
   Current language:  auto; currently ada
   (gdb) p s'length
   $2 = 0
   (gdb) l
   1	with Ada.Text_IO; use Ada.Text_IO;
   2	procedure Zero_Length_String is
   3	   S : String (-5 .. -7) := "";
   4	begin
   5	   Put_Line ("S is """
   6	               & S
   7	               & """, 'First is "
   8	               & Integer'Image (S'First)
   9	               & ", 'Last is "
   10	               & Integer'Image (S'Last));
   (gdb) p s'first
   $3 = -5
   (gdb) p s'last
   $4 = -6

so it clearly knows a *lot* about Ada!

Similar results with the gdb included in AdaCore's GNAT GPL 2009
distribution.

> (3) Do either of these compilers work with the gdb GUI in Xcode?

Don't know.

> (4) Is the 32-bit version more functional with respect to exceptions?

I don't think so. There certainly used to be a problem, discussed from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41260#c34 onward, but it's
not present in the 64-bit compiler here.

> (5) After installing in their default locations, can they be moved?

No, because even in a static link some of the GCC libraries are linked
dynamically from the as-built installation location, and remember where
they were linked from (-rpath). Of course, there's probably some cunning
way round that ...

> Yes, that helps, but the picture is still confused. Are things labeled
> x86 64-bit and i386 32-bit?

Yes.

>                             What are the .dmgs under GNAT_GCC Mac OS
> X.>gnat-gcc-4.4.2.dmg? How are they different from those under
> GNAT_GPL Mac OS X>2009-snow-leopard?

Well, the GNAT_GCC versions are FSF compilers, with the full
GNAT-modified GPL on the runtime, whereas the GNAT_GPL versions are
rebuilds of AdaCore's compilers with the GNAT extensions to the licence
removed.

>                                      Is there anything at macada.org
> that is useful for Snow Leopard?

Not sure, sorry



  reply	other threads:[~2010-03-16 20:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-15 20:24 FSF GNAT on Mac OS X Snow Leopard, does it exist? Niklas Holsti
2010-03-15 22:09 ` Simon Wright
2010-03-16  6:09   ` Jerry
2010-03-16 20:50     ` Simon Wright [this message]
2010-03-16 21:04       ` (see below)
2010-03-16  8:12   ` Niklas Holsti
2010-03-16 17:39     ` Dirk Heinrichs
2010-03-16 20:12     ` Simon Wright
2010-03-17  8:14       ` Niklas Holsti
2010-03-16  9:22   ` Martin
2010-03-16 10:20     ` Georg Bauhaus
replies disabled

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