Re:Benchmarking C++ Allocators
by gpderetta on Monday April 27, 2020 @08:34PM
(#23001979)
on gcc you can use __attribute__((malloc)) to tell the compiler that your function is malloc-like (i.e. its result type won't alias any other pointer), but any call to the litterall 'malloc' function itself is implicitly treated as such even if you do not include the appropriate header and declare it yourself (you can use -fno-builtin-functions or -free-standing or something like that to disable this treatment).
[ Parent
| on HN ]
There are no comments on this comment yet.