proxmark3 icon indicating copy to clipboard operation
proxmark3 copied to clipboard

Replace BigBuf with a small & efficient allocator

Open slurdge opened this issue 5 years ago • 3 comments
trafficstars

It shouldn't be hard to replace BigBuf with an embeded allocator: https://github.com/dimonomid/umm_malloc

The only missing bit is requesting the biggest chunk of free memory, which is easy to implement (for traces etc.)

We can then gradually remove static memory taken & put it back to this allocator, taking care of not creating memory leaks.

End result: more memory & easier tracking (basically removing each little function taking a bunch of .data for itself...)

slurdge avatar Jun 14 '20 13:06 slurdge

Sounds awesome! To finally have a unified good memory allocator deviceside.

iceman1001 avatar Jun 14 '20 15:06 iceman1001

I started adding umm code here : https://github.com/RfidResearchGroup/proxmark3/tree/umm_wip Status: it should be usable but it still needs a space and size, currently it's pointing to BigBuff space.

doegox avatar Aug 31 '20 09:08 doegox

oops, @slurdge had already his own test branch, see also https://github.com/slurdge/proxmark3/tree/umm

doegox avatar Aug 31 '20 10:08 doegox