Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: HAL9000
It's an interesting concept. I remember mainframes that had registers and no stack. But I think we'll continue to use architectures with both features for the foreseeable future. Stacks frames are great for passing arguments and containing local variables in structured programs, but good usage of registers can make a program fly.

AFAIK, Curren't processors don't have a hardware stack. They just have registers. A "stack frame" is only a memory construct, not a hardware feature.

15 posted on 08/11/2006 7:21:21 AM PDT by TChris (Banning DDT wasn't about birds. It was about power.)
[ Post Reply | Private Reply | To 11 | View Replies ]


To: TChris
You're probably right. I only browsed the slides, and missed the full explanation of the stack hardware.

The presentation seemed to be based on the assumption that the registers would be used exclusively in read/modify/write cycles. I guess that's especially true for x86 processors with relatively small number of registers. But in processors with a large register set, a good compiler or assembly language program can optimize the code to minimize reads/writes to external memory.

16 posted on 08/11/2006 9:44:51 AM PDT by HAL9000 (Happy 10th Anniversary FreeRepublic.com - Est. Sept. 23, 1996 - Thanks Jim!)
[ Post Reply | Private Reply | To 15 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson