Page 1 of 1

which header files are available in cross compiler

Posted: Thu Aug 16, 2012 9:34 pm
by 681anki
hello,
I thought that there are no header files available in cross compiler to add those in programs..But when i use #include<stdarg> ,compiler didn't give me error ..That means it is available in cross-compiler..

So I want to know what are the header files available to use in cross-compiler...THANKS..

Is it the wrong question ,,,, i asked you..???

Re: which header files are available in cross compiler

Posted: Fri Aug 17, 2012 1:15 am
by xenos
There are two types of compilation environments. "Hosted" environments are those where you have runtime libraries (such as compiling for Linux or Windows) and you can use all headers, including those that need library support such as <stdio>. "Freestanding" environments are those where you don't have any runtime support (such as a cross compiler for your OS kernel). In this case you can only use the "freestanding" headers. I think there should be a list of freestanding headers in the current C standard, or you can just ask Google.

Re: which header files are available in cross compiler

Posted: Fri Aug 17, 2012 1:37 am
by JamesM
float.h, limits.h, stdarg.h, stddef.h, inttypes.h, stdbool.h (c99 only)

Re: which header files are available in cross compiler

Posted: Fri Aug 17, 2012 5:05 am
by 681anki
JamesM wrote:float.h, limits.h, stdarg.h, stddef.h, inttypes.h, stdbool.h (c99 only)
Thanks i get it..:-)