Cross gcc Mailing List Archive
[Prev][Next][Index][Thread]
Re: RTEMS questions
On Tue, 12 Nov 1996, Robert Friedlander wrote:
>
> All of this proved to be true, and there _was_ fiddling to get the
> linker dependancies right. After putting in the stuff that the c++
> enabled bsps had, renaming main() to bsp_start(), maodifying the make
> cfgs for my bsp etc., I had to try several linker dependancy
> combinations to get the rtems-ctor.cc global constructor called
> before the main.cc ones. Are all of the boards tested for c++
> support?
If the bsp does not have the "C++ structure" then it does not have and
never has been tested with C++ support. As you mentioned, it is a fairly
straightforward transformation -- it just has not been done to every bsp.
> Having got this far, cdtest runs but the global constructors aren't
> getting their printfs executed. The instantiation order reported by
> the non-global instances constructors show that they have been
> called.
Tony will correct me if I am wrong. :) But it is possible they are
running but the C library and/or console device driver are not
initialized yet so the messages could be dropping on the floor. You
might want to try setting a boolean to indicate the code ran and dump it
after the system is completely up.
> The question is - is something dangerous lurking there? I can't
> afford the time to figure out why the output isn't being generated,
> but thats OK as long as there's no suspicion that I'm corrupting
> memory or messing up any internal buffers.
I doubt that is happening. There are a lot of debugging/self check tests
which can be enabled inside rtems and the rtems support code. You might
want to look into turning them on. There are at least checks for
stack overflow and heap problems.
> I'll try to submit the bsp changes when I've got everything sorted
> out with my application, and I can figure out the best way to package
> it.
Thanks. We appreciate the updates. Eventually every bsp should have C++
support. It would also be nice to get the ctor support code into a generic
area and not copied into each bsp. :)
--joel
Follow-Ups:
References:
Home |
Subject Index |
Thread Index