Eric Botcazou wrote:
Doing this fixed the long build time issue but it opened issue.

OK, thanks for confirming.

It looks like the RTEMS configuration is missing something
that this requires.  The first application I tried to link is missing:

+ __gnat_eh_personality
+ __gnat_begin_handler
+ __gnat_end_handler

Where do those come from and how do I turn them on?

raise-gcc.c and a-exexpr-gcc.adb, you need to add

  EH_MECHANISM=-gcc

to the RTEMS section of Makefile.in.
On the SPARC, this produced an executable I couldn't run
on the simulator.  It looked like the .text segment may
have increased enough to not fit in the simulator.

I built again for the PowerPC and got a working toolset. But
the executable looks to be about 2x the size of the ones with
the other EH mechanism.

So this appears to work around the build time problem and
will let me continue to test the real changes I was working
on but I don't know that I like this as a permanent solution.

I have seen reports where people complained about the size
of embedded GNAT and GNAT/RTEMS executables and doubling
the code size just makes it worse.

But this is progress and gives a real hint as to the underlying
problem.  Maybe it is enough for someone to fix it.  Is there a
PR for this or do I need to try to file one?

--joel

Reply via email to