Re: C++ compiler

From: Rob Savoye <rob_at_nospam.org>
Date: Sun Jan 31 1999 - 22:44:53 PST

On Wed, Jan 27, 1999 at 05:33:13PM -0800, Andy Valencia wrote:

> ["Francisco Pastor Gomis" <Francisco.Pastor@uv.es> writes:]
>
> >I am interested in use the C++ compiler in VSTA, but it's seem that it is
> >not in the distribution.
>
> Right, I never worked on it, and I don't think anybody else has, either.

  Basically the main thing you need to add support to the linker script,
which should be the default for the vsta configuration. (I'd have to
check). But typically this requires adding the lines:

    __CTOR_LIST__ = .;
    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
    *(.ctors)
    LONG(0)
    __CTOR_END__ = .;
    __DTOR_LIST__ = .;
    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
    *(.dtors)
    LONG(0)
    __DTOR_END__ = .;

  to the .text section.

> Since I don't use the GNU or Cygnus C library, there might be some hassles
> marrying the C++ library routines. Note that I'm not planning on ever
> "C++-izing" the VSTa header files themselves.

  Both libg++ and libstdc++ only require a standard C library, and the
routines read(), write(), fstat(), getpid(), isatty(), lseek(), open(),
kill(), stat(), and sbrk(). And most of these can be stubs.

        - rob -
Received on Mon Feb 1 15:41:43 1999

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:56 PDT