SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : Advanced Micro Devices - Moderated (AMD)
AMD 217.54+1.5%Nov 28 12:59 PM EST

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: pgerassi who wrote (74101)3/9/2002 6:51:57 PM
From: Joe NYCRead Replies (2) of 275872
 
Pete,

This helps both function calls and automatic variables. The calls are helped because more registers are available to hold parameters instead of them being on the stack with all of the attended cache costs. Some auto variables will be optimized to register status.

Can this be done (using registers instead of pushing parameters on the stack)? I have my doubts about it. Isn't the result just the opposite, that is when a function is called, doesn't more registers need to be stored?

My assembly skills are extremely rusty, (as you can probably tell from the question), maybe you can refresh my memory. What happens when a function is called? Can you assume that the state of the registers is the same as prior to the call? If the answer is yes, they need to be stored someplace (on stack), so 8 extra registers presents extra overhead? Is there a shortcut for finding out which registers need to be saved?

Joe
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext