This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fool Question
- To: JEFFERSON dot J dot PAREDES at SECUADO dot SHELL dot com
- Subject: Re: Fool Question
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 23 Feb 2000 22:29:37 +0100
- CC: gcc at gcc dot gnu dot org
- References: <915D3BA5A2CAD2118A3800805FC142F31B7B40@GUQ1002>
> Excuse me that fool question , i´m new in gcc,
It seems that you need a more sophisticated linker pass. If you invoke
gcc -o test test.c -v
it will try to run a number of compilation steps, including the linker
pass.
In the linker pass, you'll notice that it also passes '-lgcc' to the
linker, which is the GCC library and provides definitions for
__udivhi3 and other intrinsic functions.
As for sprintf: You'll need to provide a C library of some kind. I
suppose gcc will ask the linker for '-lc' by default. Depending on how
your environment is set up, this may or may not succeed. If you don't
have a C library (not even a very simple one), you cannot use C
library functions such as sprintf.
I don't know anything about H8 processors, so if this response is not
sufficient, please ask on the gcc list, again.
Regards,
Martin