Fedora Linux Support Community & Resources Center
  #1  
Old 24th April 2006, 10:01 PM
kbuckner Offline
Registered User
 
Join Date: Feb 2006
Location: Knoxville, TN
Posts: 4
Stack Frames

Does anyone know why gcc (v4.0.0) emits the assembly code it uses to the align the stack frame for main? I am particularly interested in the bit that does

movl $0, %eax
addl $15, %eax
addl $15, %eax
shrl $4, %eax
sall $4, %eax
subl %eax, %esp

I know what it does I just want to understand why gcc takes this very convoluted way to do it? There must be a reason, doesn't there?

Thanks for any suggestions.
Reply With Quote
Reply

Tags
frames, stack

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Guild Wars - low frames per second ? M4rc0 Gamers' Lounge 1 20th September 2008 09:23 AM
xine dropped frames turner.kj Hardware & Laptops 8 15th September 2006 07:49 AM
xine drops too many frames posey Using Fedora 1 18th December 2005 10:48 AM
HTML – Frames --> use or not? BrokenKingpin Programming & Packaging 5 4th October 2005 08:22 PM
No of Frames varies!!!! with glxgears Clunixchit Using Fedora 9 30th May 2005 09:49 AM


Current GMT-time: 15:27 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat