Xref: news-dnh.mv.net comp.os.msdos.djgpp:1524 Newsgroups: comp.os.msdos.djgpp Path: news-dnh.mv.net!mv!news.sprintlink.net!in2.uu.net!pipeline!psinntp!psinntp!psinntp!netrixgw.netrix.com!news From: ld AT jasmine DOT netrix DOT com (Long Doan) Subject: Re: Assembly, second time Lines: 32 Sender: news AT netrix DOT com Organization: Netrix Corporation References: Date: Mon, 14 Aug 1995 12:43:41 GMT To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp In article sulyokp AT dragon DOT klte DOT hu (Sulyok Peter) writes: > I haven't got any response to these question, so I write these again. > > I need more information about C & assembly interface in DJGPP. You should read the FAQ and gas's docs on this one. > I see in library source code that you save ESI, EDI and EBX > registers in assembly modules. > Is it enough to write a safe assembly routine ? That should be enough, but to be sure, you can either: - Save all registers that you use. - Tell gcc that you'll clobber those registers. > What are the default processor registers of C register variables in DJGPP ? > And what about '-mreg-alloc=REG' option of GCC ? GCC'll decides which registers it can use to store some variables. Generally, the registers %eax, %ebx, %ecx, %edx, %esi, and %edi will be used. Long. -- ============================================================== Long Doan ld AT netrix DOT com Netrix Corporation ldoan1 AT osf1 DOT gmu DOT edu 13595 Dulles Technology Drive Herndon Va 22071 ==============================================================