Re: [MIPS] Optimizing stack frames for codesize

2013-10-06 Thread Richard Sandiford
Matthew Fortune writes: >> If you have time to benchmark it then let's go with whatever turns out best. > > I have already done some investigation (only with bare metal tools so > far) and that shows that growing the frame downward almost universally > improves code size. This is looking at the de

RE: [MIPS] Optimizing stack frames for codesize

2013-10-04 Thread Matthew Fortune
> From: Richard Sandiford [mailto:rdsandif...@googlemail.com] > Matthew Fortune writes: > > I have been looking at using the FRAME_GROWS_DOWNWARD macro to > change > > the layout of a frame such that spill slots end up closer to the stack > > pointer. This is useful as it leads to more spill/relo

Re: [MIPS] Optimizing stack frames for codesize

2013-10-03 Thread Richard Sandiford
Matthew Fortune writes: > I have been looking at using the FRAME_GROWS_DOWNWARD macro to change > the layout of a frame such that spill slots end up closer to the stack > pointer. This is useful as it leads to more spill/reload instructions > being encodable with 16bit instructions for mips16 and