RE: [PATCH v2 0/8] objtool: reduce maximum memory usage

David Laight posted 8 patches 2 years, 7 months ago
Only 0 patches received!
RE: [PATCH v2 0/8] objtool: reduce maximum memory usage
Posted by David Laight 2 years, 7 months ago
From: Thomas Weißschuh.
> Sent: 31 January 2023 03:55
...
> I have another half-finished series that replaces the doubly-linked
> list_heads used by elf.h with a custom singly-linked list.
> This would save a few pointers per struct.
> 
> Do you think this is worth it?

If you allocate the structures in blocks of (say) 256 you
can use an array of pointers to the blocks and then a
32bit index instead of a 64bit pointer.

For real space-saving you might decide that the index can
never exceed 2^^24 and use a bitfield!

	David

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