From: Denys Vlasenko
> Sent: 29 April 2022 17:17
> 
> On Wed, Apr 27, 2022 at 6:55 PM Jason A. Donenfeld <[email protected]> wrote:
> > On Wed, Apr 27, 2022 at 06:15:50PM +0200, Denys Vlasenko wrote:
> > > Can we replace all [s]size_t's with ints/unsigneds? We do not expect
> > > random pools anywhere near 4 gigabytes...
> >
> > Probably that's fine. Is the advantage to tossing out consistent types
> > worth it though? Does this actually save space? Since [s]size_t is
> > usually the word size, won't codegen not really change much?
> 
> For example, on x86-64, 32-bit insns are often shorter.

Provided you remember to use 'unsigned int' for array subscripts.
Otherwise you can get a lot of 'sign extend' instructions.

        David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, 
UK
Registration No: 1397386 (Wales)

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to