stupid linker question....

4 messages, 4 authors, 2006-07-24 · open the first message on its own page

stupid linker question....

From: Steve Iribarne (GMail) <hidden>
Date: 2006-07-21 20:12:32

I forgot the flag that generates a list file that has both assembly
and c mixed in.

Anyone?

Thanks...

-stv

Re: stupid linker question....

From: Wade Maxfield <hidden>
Date: 2006-07-21 21:17:05

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) [off-list ref] 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

Re: stupid linker question.... to remove unused functions in the object file.

From: Parav Pandit <hidden>
Date: 2006-07-24 12:07:14

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)
[off-list ref] wrote:
quoted
I forgot the flag that generates a list file that
has both assembly
quoted
and c mixed in.

Anyone?

Thanks...

-stv
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
quoted
_______________________________________________
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 

Re: stupid linker question.... to remove unused functions in the object file.

From: Becky Bruce <hidden>
Date: 2006-07-24 20:54:20

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:
quoted hunk
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:
quoted
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)
[off-list ref] wrote:
quoted
I forgot the flag that generates a list file that
has both assembly
quoted
and c mixed in.

Anyone?

Thanks...

-stv
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
quoted
quoted
_______________________________________________
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help