Another look at the ARM division routine

Zack Weinberg zack@codesourcery.com
Fri Nov 28 21:17:00 GMT 2003


Richard Earnshaw <rearnsha@arm.com> writes:

> There is a trick you can play, but I'm not sure if GCC's build system will 
> support it.  It relies on constructing your archive files quite carefully.
>
> Basically, you build both versions of __divsi3, one small and one fast.  
> In the small one you make the definition of __divsi3 weak.  In the fast 
> one you make it strong, and also add a symbol definition, say 
> __fast_divsi3.

Another approach would be to have __divsi3_big and __divsi3_small, in
different modules of libgcc.a, then have TARGET_INIT_LIBFUNCS rename
the __divsi3 libfunc based on optimize_size.

zw



More information about the Gcc-patches mailing list