Re: [U-Boot] [PATCH] tiny-printf: Adjust to avoid using data section

2016-08-08 Thread Stefan Roese
On 06.08.2016 18:59, Tom Rini wrote: On Thu, Aug 04, 2016 at 09:58:14PM -0600, Simon Glass wrote: We can pass all the variables down to the functions that need them, and then everything is on the stack. This is safer than using the data section. At least on firefly-rk3288, the code size is the

Re: [U-Boot] [PATCH] tiny-printf: Adjust to avoid using data section

2016-08-06 Thread Tom Rini
On Thu, Aug 04, 2016 at 09:58:14PM -0600, Simon Glass wrote: > We can pass all the variables down to the functions that need them, and > then everything is on the stack. This is safer than using the data section. > > At least on firefly-rk3288, the code size is the same and the data size is > 12

[U-Boot] [PATCH] tiny-printf: Adjust to avoid using data section

2016-08-04 Thread Simon Glass
We can pass all the variables down to the functions that need them, and then everything is on the stack. This is safer than using the data section. At least on firefly-rk3288, the code size is the same and the data size is 12 bytes smaller: before: 188652636 40 215415425 b/firefl