Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(369)

Issue 7303099: code review 7303099: cmd/6c, cmd/8c: cut stack frames by about half (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rsc
Modified:
11 years, 2 months ago
Reviewers:
ken3
CC:
ken2, golang-dev
Visibility:
Public.

Description

cmd/6c, cmd/8c: cut stack frames by about half The routine that adds an automatic to the stack was adding ptrsize-1 to the size before rounding up. That addition would only make sense to turn a round down into a round up. Before a round up, it just wastes a word. The effect was that a 6c function with one local and one two-word function call used (8+8)+(16+8) = 40 bytes instead of 8+16 = 24 bytes. The wasted space mostly didn't matter, but one place where it does matter is when trying to stay within the 128-byte total frame constraint for #pragma textflag 7 functions. This only affects the C compilers, not the Go compilers. 5c already had correct code, which is now copied to 6c and 8c.

Patch Set 1 #

Patch Set 2 : diff -r 864c37196df8 https://code.google.com/p/go/ #

Patch Set 3 : diff -r bfaaa2075564 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M src/cmd/6c/swt.c View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/8c/swt.c View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 2 months ago (2013-02-18 18:24:02 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=2033275b4c48 *** cmd/6c, cmd/8c: cut stack frames by about half The routine ...
11 years, 2 months ago (2013-02-18 18:24:13 UTC) #2
ken3
11 years, 2 months ago (2013-02-18 19:32:51 UTC) #3
Message was sent while issue was closed.
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b