* stupid linker question....
@ 2006-07-21 20:06 Steve Iribarne (GMail)
2006-07-21 21:10 ` Wade Maxfield
0 siblings, 1 reply; 4+ messages in thread
From: Steve Iribarne (GMail) @ 2006-07-21 20:06 UTC (permalink / raw)
To: linuxppc-embedded
I forgot the flag that generates a list file that has both assembly
and c mixed in.
Anyone?
Thanks...
-stv
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stupid linker question....
2006-07-21 20:06 stupid linker question Steve Iribarne (GMail)
@ 2006-07-21 21:10 ` Wade Maxfield
2006-07-24 12:07 ` stupid linker question.... to remove unused functions in the object file Parav Pandit
0 siblings, 1 reply; 4+ messages in thread
From: Wade Maxfield @ 2006-07-21 21:10 UTC (permalink / raw)
To: Steve Iribarne (GMail); +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
gcc -Wa,-alhs -g main.c >main.cs
will put interleaved code/assembly into main.cs file.
wade
On 7/21/06, Steve Iribarne (GMail) <netstv@gmail.com> wrote:
>
> I forgot the flag that generates a list file that has both assembly
> and c mixed in.
>
> Anyone?
>
> Thanks...
>
> -stv
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
[-- Attachment #2: Type: text/html, Size: 898 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stupid linker question.... to remove unused functions in the object file.
2006-07-21 21:10 ` Wade Maxfield
@ 2006-07-24 12:07 ` Parav Pandit
2006-07-24 20:54 ` Becky Bruce
0 siblings, 1 reply; 4+ messages in thread
From: Parav Pandit @ 2006-07-24 12:07 UTC (permalink / raw)
To: Wade Maxfield, Steve Iribarne (GMail); +Cc: linuxppc-embedded
Hi,
I have few functions in a C file but those are not
called at present. Even though those function
definitions are part of the object file.
Those will be called later on.
What CFLAGS should I pass to remove unused functions?
I cannot enable -Ox at present to have any
unpredictable behaviour.
Regards,
Parav Pandit
--- Wade Maxfield <wmaxfield@gmail.com> wrote:
> gcc -Wa,-alhs -g main.c >main.cs
>
> will put interleaved code/assembly into main.cs
> file.
>
> wade
>
>
>
> On 7/21/06, Steve Iribarne (GMail)
> <netstv@gmail.com> wrote:
> >
> > I forgot the flag that generates a list file that
> has both assembly
> > and c mixed in.
> >
> > Anyone?
> >
> > Thanks...
> >
> > -stv
> > _______________________________________________
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> >
>
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
> > _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
>
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stupid linker question.... to remove unused functions in the object file.
2006-07-24 12:07 ` stupid linker question.... to remove unused functions in the object file Parav Pandit
@ 2006-07-24 20:54 ` Becky Bruce
0 siblings, 0 replies; 4+ messages in thread
From: Becky Bruce @ 2006-07-24 20:54 UTC (permalink / raw)
To: Parav Pandit; +Cc: linuxppc-embedded
I believe you can use -ffunction-sections -Wl,--gc-sections when you
compile and link. If you have binutils prior to 2.16, this only
works with -static.
-B
On Jul 24, 2006, at 7:07 AM, Parav Pandit wrote:
> Hi,
>
> I have few functions in a C file but those are not
> called at present. Even though those function
> definitions are part of the object file.
> Those will be called later on.
>
> What CFLAGS should I pass to remove unused functions?
> I cannot enable -Ox at present to have any
> unpredictable behaviour.
>
> Regards,
> Parav Pandit
>
>
> --- Wade Maxfield <wmaxfield@gmail.com> wrote:
>
>> gcc -Wa,-alhs -g main.c >main.cs
>>
>> will put interleaved code/assembly into main.cs
>> file.
>>
>> wade
>>
>>
>>
>> On 7/21/06, Steve Iribarne (GMail)
>> <netstv@gmail.com> wrote:
>>>
>>> I forgot the flag that generates a list file that
>> has both assembly
>>> and c mixed in.
>>>
>>> Anyone?
>>>
>>> Thanks...
>>>
>>> -stv
>>> _______________________________________________
>>> Linuxppc-embedded mailing list
>>> Linuxppc-embedded@ozlabs.org
>>>
>>
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>>
>>> _______________________________________________
>> Linuxppc-embedded mailing list
>> Linuxppc-embedded@ozlabs.org
>>
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-24 20:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-21 20:06 stupid linker question Steve Iribarne (GMail)
2006-07-21 21:10 ` Wade Maxfield
2006-07-24 12:07 ` stupid linker question.... to remove unused functions in the object file Parav Pandit
2006-07-24 20:54 ` Becky Bruce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).