Re: Question about GCC and stack

Brian Raiter <[email protected]>
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
> The subl instruction is pointless, I dont know why it's inserted. It
> could be just generic stub code that gcc always inserts for
> allocating stack variables, but as in this case you dont use any, it
> allocates $0 bytes...I'm sure someone will correct me if there's a
> good reason for it :)

I expect that the instructions obtained by the original poster were
created by gcc without optimization. Run gcc with -O2 or so would
probably yield a simpler set of instructions.

b
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.