9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] nm "L symbols"
@ 2011-05-04 11:40 Greg Comeau
  2011-05-04 12:16 ` Anthony Martin
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Comeau @ 2011-05-04 11:40 UTC (permalink / raw)
  To: 9fans

man nm shows a symbol type of L that is possible denoting it as
a "leaf function text segment symbol".   Often a leaf function
is distinguished by being at the end of a call hierarchy and
can sometimes yield difference in code generation regarding
stack space and such.  Is this the case here?  If so,
then a L is otherwise a T (and an l a t), or is there some
other differences?
--
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE ==>     http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] nm "L symbols"
  2011-05-04 11:40 [9fans] nm "L symbols" Greg Comeau
@ 2011-05-04 12:16 ` Anthony Martin
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Martin @ 2011-05-04 12:16 UTC (permalink / raw)
  To: comeau, Fans of the OS Plan 9 from Bell Labs

Greg Comeau <comeau@panix.com> once said:
> man nm shows a symbol type of L that is possible denoting it as
> a "leaf function text segment symbol".   Often a leaf function
> is distinguished by being at the end of a call hierarchy and
> can sometimes yield difference in code generation regarding
> stack space and such.  Is this the case here?  If so,
> then a L is otherwise a T (and an l a t), or is there some
> other differences?

You've got it.  The Plan 9 linkers for RISC-y
architectures will output these leaf symbols.

  Anthony



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-04 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-04 11:40 [9fans] nm "L symbols" Greg Comeau
2011-05-04 12:16 ` Anthony Martin

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).