This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC For Embedded!?
- To: gcc at gcc dot gnu dot org
- Subject: GCC For Embedded!?
- From: CIH <cih at wahoo dot com dot tw>
- Date: Thu, 23 Dec 1999 10:41:03 +0800
Hello... ^o^
I develop embedded linux, I need smallest kernel and linux apps...
///////////////////////////////////////////////////////////////////////////////////////
/* File : test.c */
static void XYZ()
{
// The XYZ function code is very big...
}
static void test()
{
}
int main()
{
test();
return 1;
}
///////////////////////////////////////////////////////////////////////////////////////
# gcc -Wall -c test.c -o test
test.c:3: warning: `XYZ' defined but not used
///////////////////////////////////////////////////////////////////////////////////////
I find the ELF "test"...
When the very big function XYZ() is ever unused, but gcc still compiles
"XYZ" to "test"...
My god... I almost try all gcc command options, but "test" file still
has the very big function "XYZ"...
Anyone can help me!? :~~~~~