This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 4/19/10, ng@piments.com<ng@piments.com> wrote:Thanks Martin.On 04/18/10 20:58, Martin Guy wrote:On 4/18/10, ng@piments.com<ng@piments.com> wrote:based onI am experimenting with building a toolchain with maverick enabledprobably be called LIBCFLAGS or something like that;patching gcc according to Martin Guy's patch set. http://martinwguy.co.uk/martin/crunch/
He suggests using -mfpu=maverick -mfloat-abi=softfp
CT_LIBC_GLIBC_EXTRA_CFLAGS: Extra target CFLAGS to use when building.
I've added the following to the latter option only : -mfpu=maverick -mfloat-abi=softfp
Does that look like the correct place to put this?
That sounds like the one. There must also be -mcpu=ep9312, otherwise the assembler fails to recognize the maverick asm instructions, even though it is told -mfpu=maverick.
I tried building native glibc to get faster sin/cos etc but found that it went into an infinite loop on certain values of sin(). However, that was with an unmodified glibc source. There are patches to put Maverick hacks into glibc, to do with endianness, rounding modes, the FPU control word and more.
One is large: martinwguy.co.uk/crunch/glibc-crunch.patch Another is very small and looks half-finished but may be worth investigating martinwguy.co.uk/crunch/glibc-crunch2.patch
If you have any joy with these let me know.
Good luck!
M
So now I've put LIBC_GLIBC_EXTRA_CFLAGS= -mfpu=maverick -mfloat-abi=softfp -mcpu=ep9312
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |