News for hackers. Stuff that matters.
Re:Smuggling Data in Pointers by dubya on Monday November 14, 2011 @10:02AM (#3234191)
The enormity of 64-bit pointers is something Don Knuth has complained about because it wastes a lot of memory for programs that don't need that much address space. And it actually matters for some of the stuff he writes. The old Motorola had an addressing mode that used 16 bit relative pointers. Does Intel have anything similar for x64?
Re:Smuggling Data in Pointers by dubya on Monday November 14, 2011 @02:14PM (#3235243)
Replying to myself :( The mode was called PC relative addressing, and resulted in smaller, faster code on the 68000, but things had to be written in 32k chunks. I seem to recall that it was required for the original Macintosh before they wrote a proper program loader. Anyhow, some of Knuth's code (hiss BDD package at least) has hacks to reduce the size of pointers.
Re:Smuggling Data in Pointers by BruceJillis on Monday November 14, 2011 @05:15PM (#3235942)
Came here to make a remark about Knuth. Indeed, in TACP vol 1, fascicle 1 (the new MMIX design) he talks about being able to address memory in chunks larger than 8 bits and specifically remarks about the unused bits: "we will find precious use for them later". :)
Re:Smuggling Data in Pointers by dmpk2k on Monday November 14, 2011 @01:05PM (#3234968)