This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: gcc on an OS less system


On Wed, Oct 22, 2003 at 06:09:37PM -0700, Viswanathan Sankararam wrote:
>     The question is how will I override the system calls that come with
> libc.a with my implementation of the syscalls. Do I just remove syscalls.o
> from the archive and add mine. Would that work?

   Having on the one hand, gcc-generated code that makes posix system
calls, and on the other, a raw target with some arbitrary set of service
functions, it's a bit optimistic to expect the two to be aware of the
existence of each other, let alone be able to interwork. What usually
ends up happening is a set of wrapper functions which accept the
caller's argument list, and invoke the most appropriate service function
available, mapping the arguments.

   If any degree of robustness is desired, then there arises the
question of how well the found service functions satisfy all the
possible expectations of the gcc-generated code. That's often when you
start rewriting the service functions.

   Good luck. :-)

Erik

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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