Mail Archives: djgpp/1995/08/14/15:27:56
In article <DD563t DOT 14H AT jade DOT mv DOT net> 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
==============================================================
- Raw text -