9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] maxround and stack frame sizes
@ 2013-01-22 10:49 Anthony Martin
  2013-01-22 15:24 ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Martin @ 2013-01-22 10:49 UTC (permalink / raw)
  To: 9fans

I'm curious about the origins of the maxround
function in the compilers. Specifically, why is
5c different from all the others?

It seems the common implementation gives rise
to unnecessarily large stack frames.

For convenience:

    /sys/src/cmd/6c/swt.c:/^maxround
    /sys/src/cmd/5c/swt.c:/^maxround
    /sys/src/cmd/cc/dcl.c:/^adecl

Thanks,
  Anthony



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

* Re: [9fans] maxround and stack frame sizes
  2013-01-22 10:49 [9fans] maxround and stack frame sizes Anthony Martin
@ 2013-01-22 15:24 ` erik quanstrom
  0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2013-01-22 15:24 UTC (permalink / raw)
  To: 9fans

> It seems the common implementation gives rise
> to unnecessarily large stack frames.

yes, at first glance, it seems it could.  surprising given the
kernel macro, that round() rounds up.

- erik



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

end of thread, other threads:[~2013-01-22 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22 10:49 [9fans] maxround and stack frame sizes Anthony Martin
2013-01-22 15:24 ` erik quanstrom

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