This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]