From: Christopher F. <cg...@re...> - 2003-03-08 03:08:10
|
On Thu, Mar 06, 2003 at 03:04:26AM +0000, Danny Smith wrote: >>I forgot about this issue because I was only thinking of the library >>file format itself. Apart from alloca() I have checked that certain >>"long long" arithmetic (e.g. division) uses functions from libgcc.a so >>I guess this should be documented too. Looking at libgcc2.c though it >>is not obvious to me what the purpose of many functions is (e.g. >>__fixunssfDI ?) so does anyone know whether they are documented >>somewhere? I > >Ah yes, look at the undefined symbols in w32api/lib/largeint.o I think >these are all linux libc names. The documentation for eg __divdi3 is >at >http://www.linuxbase.org/spec/refspecs/LSB_1.2.0/IA32/spec/baselib---div >di3-3.html > >i386 specific inline versions should be fairly simple to write for most >of these. I don't know if it's applicable here or not but uClibc does something "clever" with these functions. It pulls the functions out of libgcc.a and puts them the the C library (libc.so in this case). This avoids the requirement for a separate libgcc.a to some degree, although gcc still requires it. I just make an empty library for this case, though. Could you do something like this with with mingwex.dll? cgf |