Using gcc without C librairies

Remy Bohmer linux@bohmer.net
Fri Dec 7 17:20:00 GMT 2007


Hello,

> Usually, we don not eed to link C libraries to our target applications.
> Does gcc allow us to use such a configuration?
> If it does not, do we have to downsize ourself a usual library

The linux kernel and the u-boot bootloader are a few examples that are
compiled that way also, thus not linked to any C-libraries, So, to me
it seems possible. Maybe you can look at how those make-environments
look like?
So, even if you have complete toolchain, it does not mean that it is used...

Remy

2007/12/7, Juju Mimi <migounet73@gmail.com>:
> Hi,
>
> I would like to use gcc to cross-compile C language applications to
> bare metal MIPS, ARM or PPC targets.
> Those applications does not use any function provided with the usual C
> libraries (no printf, nor memcpy etc...).
> We just wanna use the cross-compiler as a single C syntax interpreter.
> In case the compiler meets a call to an undefined function, we could
> assume it just warns us.
> Usually, we don not eed to link C libraries to our target applications.
> Does gcc allow us to use such a configuration?
> If it does not, do we have to downsize ourself a usual library
> (assuming it is permitted to modify it)?
>
> thk u all,
>
> julian
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list