On Fri, Sep 01, 2000 at 10:34:19AM -0700, Matthew Jacob wrote:
> > On Fri, Sep 01, 2000 at 03:15:27PM +0200, Andi Kleen wrote:
> > > So what do you propose to use when a long long division is needed (after
> > > much thought and considering all alternatives etc.etc.) ?
> > Link against libgcc, what else?
> As also does anyone who does solaris drivers (x86 or sparc) using gcc- the
> code that gcc emits that requires 64 bit operations is quite nicely available
> in libgcc.a. Only a minor bit of hackage with gcc -v is needed in a makefile
> to emit the correct path for the linker to use.
Or use --print-libgcc-file-name:
`gcc <options> --print-libgcc-file-name`
where <options> are the options normally used to compile code (ie, for example
on machines that optionally do not have a floating point use, adding
-msoft-float would select the libgcc.a that was compiled with -msoft-float).
> That is, unless somebody wants to write the support functions (specific to
> gcc, ah, but which one?) into the linux kernel? Oh dear, I don't think so..
Other than division, most of the 64 bit support functions are fairly easy to
write. Obviously, if you do this and gcc 7.0 changes the interface to call
different functions, you are hosed.
-- Michael Meissner, Red Hat, Inc. PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA Work: email@example.com phone: +1 978-486-9304 Non-work: firstname.lastname@example.org fax: +1 978-692-4482 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:11 EST