Page 1 of 1

Compiling with gcc - leave out liberies

Posted: Thu May 09, 2002 11:00 pm
by Leadorn
Hi all!!

Does anyone know the command to leave out c
standard liberies when compiling.

If I compile this code the binary file size becomes 1024.

int main(void)
{
repeat: goto repeat;
}

RE:Compiling with gcc - leave out liberies

Posted: Thu May 09, 2002 11:00 pm
by Guest
>On 2002-05-10 15:31:21, Leadorn wrote:
>Hi all!!
>
>Does anyone know the command to leave out c
>standard liberies when compiling.
>
>If I compile this code the binary file size becomes 1024.
>
>int main(void)
> {
> repeat: goto repeat;
> }

If you read through the developer guides found on this site, I think it will tell you the -freestanding switch will do the trick.