__main call for c++ on sparc-elf target
Jim Wilson
wilson@tuliptree.org
Fri Jun 27 08:46:00 GMT 2003
Brenner Joel wrote:
> I'm fully agree to use .init/.fini mechanism but I need some more
> detailed description of how use it because I need to use my own CRT0
> modified for my embedded target. Can somebody tell me where can I find a
> description of how this mechanism should work ?
Look at one of the many targets that already does things this way.
xstormy16 is a relatively recent embedded port, and seems to do it the
"right" way. See the xstormy16 support in libgloss which is part of
newlib which is available on sources.redhat.com. All linux targets do
things this way, but they have a lot more complexity than you need for
an embedded target.
Jim
More information about the Gcc
mailing list