3 ms·
Good article. PA-RISC is a little weirder than the article lets on. The stack and heap are reversed - heap starts high and grows lows, while the stack starts l
by bediger4000 4y ago
Good article.
PA-RISC is a little weirder than the article lets on. The stack and heap are reversed - heap starts high and grows lows, while the stack starts low and grows up. This probably prevents a lot of casual buffer overflows.
It also has a 4-bit segment register. It's not the ugly overlapping segmentation of the x86, more like a register that selects completely different, non-overlapping, address spaces.
- classichasclass 4y ago(author) Thanks! Yes, HP-UX does do that with the stack and heap, but I don't believe this was obligatory to PA-RISC; that's just how the calling convention was defined.