Calling convention that gets frame pointer register clobbered

Jim Wilson wilson@specifixinc.com
Fri Dec 19 21:12:00 GMT 2003


Etienne Lorrain wrote:
>  Another related question: Is it possible, by inline assembler, to get GCC
>  to save segment registers?

Gcc doesn't know about the segment registers.  Support for them would 
have to be added in: new registers, register classes, constraint 
letters, instructions for saving and restoring them.  That won't happen 
unless someone volunteers a patch.

>  You cannot compile the logical (%si containning the address of a
>  structure to be filled by the disk BIOS service int $0x13):

I don't understand what the complaint is here.  The example you gave 
doesn't compile because ebiosinfo_t is undefined.  If I add a simple 
structure, then it does compiler.  I don't get an error with gcc-3.3 or 
current mainline.  I don't see anything obviously wrong with the 
resulting assembly code.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list