Re: No call for Ada (was Re: Announcing new scripting/prototyping language)

From: August Derleth (see_at_sig.now)
Date: 02/11/04

  • Next message: MSG: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"
    Date: Tue, 10 Feb 2004 17:12:37 -0700
    
    

    Martin Dowie wrote:
    > "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
    > news:22jh209rupt9e957iloaus9fn34ofm0qt3@4ax.com...
    >
    >>>Not quite...
    >>>...they share a back-end - GNAT does NOT translate Ada source into C as
    >
    > an
    >
    >>>intermediate.
    >>
    >>Yes of course, GNU C is just a name of a set of compilers. Important
    >>is that the back-end is same, so it is unlikely for GNAT to be slower
    >>than GNU C. Theoretically Ada as a language should allow better
    >>optimization than C.
    >
    >
    > For total pedantry, GCC is the name for the set of compilers, GNU C is
    > one element in this set.
    >

    GNU C is also used to refer to a nonstandard (extended and modified)
    version of C compiled by the GNU Project's C compilers in a
    non-conformant mode. A notable extension provided by GNU C over standard
    C is the existence of functions that are private to another function,
    and are defined within the function they are private to.

    An example:

    int foo(int x)
    {
        int bar(int y)
        {
           return y % 2;
        }
        int z = bar(x);

        return z + 2;
    }

    That is a compilable GNU C program, and it behaves such that bar() is
    not visible outside foo(). It is not conformant to any relevant standard
    (as far as I know).

    -- 
    My address is yvoregnevna gjragl-guerr gjb-gubhfnaq guerr ng lnubb qbg pbz
    Note: Rot13 and convert spelled-out numbers to numerical equivalents.
    

  • Next message: MSG: "Re: No call for Ada (was Re: Announcing new scripting/prototyping language)"

    Relevant Pages

    • Re: About Sun C++, gcc and toolchains
      ... I'm new in the Solaris world and I want to develop some applications ... SunStudio compilers instead of g++... ... IIRC Spec benchmarks are run with Sun Studio compilers. ... they over a lot of features that the GNU ...
      (comp.unix.solaris)
    • Re: Next generation products - microprocessor family
      ... I used gnu ARM tools for 5+ years (under both Linux and Cygwin) ... I've also seen plenty of good commercial compilers. ...
      (comp.arch.embedded)
    • Re: gnu extensions
      ... GNU C and disregard the limitations of other compilers. ... one developed by the hardware manufacturer, a gcc port, and sometimes an ... specific to that target spent on it by the hardware manufacturer during ...
      (comp.programming)
    • Re: Porting C software
      ... GNU C and disregard the limitations of other compilers. ...
      (comp.lang.c)
    • Re: No call for Ada (was Re: Announcing new scripting/prototyping language)
      ... GNU C is just a name of a set of compilers. ... C is the existence of functions that are private to another function, ... int foo ...
      (comp.lang.c)