[lkml]   [2000]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Large File support and blocks.
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: phone: +1 978-486-9304
Non-work: fax: +1 978-692-4482
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.086 / U:1.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site