I'm no hardware nut, but..
I'm no hardware nut, but..
Posted Oct 2, 2008 1:45 UTC (Thu) by dw (guest, #12017)Parent article: Low-level tracing plumbing
I'd have thought either of these would be faster:
struct { uint32_t; uint32_t; uint32_t; }
struct { uint8_t; uint8_t; uint16_t; }
Side note: has there been any discussion of moving the kernel to the use of C99 fixed-width integer types? It's only been almost a decade. Having worked on a C99 project for a while, the in-kernel type names now look pesky. :)
Looking at (unoptimised Apple) gcc 4 output makes me think the struct from the article may not be so optimal.. http://pastebin.com/f33132559
