This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __main call for c++ on sparc-elf target


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]