This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Inline assembly questions
- From: Stephen Biggs <xyzzy at hotpop dot com>
- To: GCC list <gcc at gcc dot gnu dot org>
- Date: 07 Apr 2003 09:44:08 -0200
- Subject: Inline assembly questions
When executing in a different code section, why do I have to do:
asm ( " lea %%cs:SomeFunction,%%eax" : : : "%eax" );
asm ( " call *%%eax" : : : "%eax");
... when what I want to do is this (which goes off into never-never
land):
asm ( " call *%%cs:SomeFunction" : : : "%eax" );
I must be unclear on some concept. How do I force an absolute call
without having to use a register?
Also, how do I make a function in a GCC C file that is strictly inline
assembly be completely bare with no prologue/epilogue (stack frame) or
optimizations? I would like to optimize myself and also get rid of
sillinesses like:
movl %eax,%eax
Thanks for any help.