On Apr 18, 2008, at 1:18 PM, David Daney wrote:
Rick Mann wrote:
Thank you; I should've checked that first.
I'm not sure I understand how GCC uses these libraries. If I'm
cross-compiling for AVR, shouldn't the library be built on AVR?
This creates a new chicken-and-egg problem, doesn't it?
No, the libraries are only used by the compiler proper. They allow
the compiler to do constant folding at compile time and get the same
answer that the processor would have gotten.
If I build GMP/MPFR for Mac OS X using Xcode (assuming it'll even
build; apparently there are issues with Apple's GCC), that will
build libraries that execute on OS X/i386. Is that the only
capacity in which GMP/MPFR are used by GCC?
Yes.
Or does it attempt to generate target code that uses it?
No.
Thanks!
--
Rick