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]

Re: Calling convention that gets frame pointer register clobbered


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



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