URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libffi/] [README] - Rev 776
Go to most recent revision | Compare with Previous | Blame | View Log
This directory contains the libffi package, which is not part of GCC butshipped with GCC as convenience.Status======libffi-3.0.9 was released on December 31, 2009. Check the libffi webpage for updates: <URL:http://sourceware.org/libffi/>.What is libffi?===============Compilers for high level languages generate code that follow certainconventions. These conventions are necessary, in part, for separatecompilation to work. One such convention is the "callingconvention". The "calling convention" is essentially a set ofassumptions made by the compiler about where function arguments willbe found on entry to a function. A "calling convention" also specifieswhere the return value for a function is found.Some programs may not know at the time of compilation what argumentsare to be passed to a function. For instance, an interpreter may betold at run-time about the number and types of arguments used to calla given function. Libffi can be used in such programs to provide abridge from the interpreter program to compiled code.The libffi library provides a portable, high level programminginterface to various calling conventions. This allows a programmer tocall any function specified by a call interface description at runtime.FFI stands for Foreign Function Interface. A foreign functioninterface is the popular name for the interface that allows codewritten in one language to call code written in another language. Thelibffi library really only provides the lowest, machine dependentlayer of a fully featured foreign function interface. A layer mustexist above libffi that handles type conversions for values passedbetween the two languages.Supported Platforms===================Libffi has been ported to many different platforms.For specific configuration details and testing status, pleaserefer to the wiki page here:http://www.moxielogic.org/wiki/index.php?title=Libffi_3.0.9At the time of release, the following basic configurations have beentested:|--------------+------------------|| Architecture | Operating System ||--------------+------------------|| Alpha | Linux || ARM | Linux || AVR32 | Linux || HPPA | HPUX || IA-64 | Linux || MIPS | IRIX || MIPS | Linux || MIPS64 | Linux || PowerPC | Linux || PowerPC | Mac OSX || PowerPC | FreeBSD || PowerPC64 | Linux || S390 | Linux || S390X | Linux || SPARC | Linux || SPARC | Solaris || SPARC64 | Linux || SPARC64 | FreeBSD || X86 | FreeBSD || X86 | kFreeBSD || X86 | Linux || X86 | Mac OSX || X86 | OpenBSD || X86 | OS/2 || X86 | Solaris || X86 | Windows/Cygwin || X86 | Windows/MingW || X86-64 | FreeBSD || X86-64 | Linux || X86-64 | OpenBSD ||--------------+------------------|Please send additional platform test results tolibffi-discuss@sourceware.org and feel free to update the wiki pageabove.Installing libffi=================First you must configure the distribution for your particularsystem. Go to the directory you wish to build libffi in and run the"configure" program found in the root directory of the libffi sourcedistribution.You may want to tell configure where to install the libffi library andheader files. To do that, use the --prefix configure switch. Libffiwill install under /usr/local by default.If you want to enable extra run-time debugging checks use the the--enable-debug configure switch. This is useful when your program diesmysteriously while using libffi.Another useful configure switch is --enable-purify-safety. Using thiswill add some extra code which will suppress certain warnings when youare using Purify with libffi. Only use this switch when usingPurify, as it will slow down the library.It's also possible to build libffi on Windows platforms withMicrosoft's Visual C++ compiler. In this case, use the msvcc.shwrapper script during configuration like so:path/to/configure --enable-shared --enable-static \CC=path/to/msvcc.sh LD=link \CPP=\"cl -nologo -EP\"Configure has many other options. Use "configure --help" to see them all.Once configure has finished, type "make". Note that you must be usingGNU make. You can ftp GNU make from prep.ai.mit.edu:/pub/gnu.To ensure that libffi is working as advertised, type "make check".This will require that you have DejaGNU installed.To install the library and header files, type "make install".History=======See the ChangeLog files for details.3.0.10 ???-??-??Fix the N64 build on mips-sgi-irix6.5.Testsuite fixes for Tru64 Unix.Enable builds with Microsoft's compiler.Enable x86 builds with Sun's compiler.3.0.9 Dec-31-09Add AVR32 and win64 ports. Add ARM softfp support.Many fixes for AIX, Solaris, HP-UX, *BSD.Several PowerPC and x86-64 bug fixes.Build DLL for windows.3.0.8 Dec-19-08Add *BSD, BeOS, and PA-Linux support.3.0.7 Nov-11-08Fix for ppc FreeBSD.(thanks to Andreas Tobler)3.0.6 Jul-17-08Fix for closures on sh.Mark the sh/sh64 stack as non-executable.(both thanks to Kaz Kojima)3.0.5 Apr-3-08Fix libffi.pc file.Fix #define ARM for IcedTea users.Fix x86 closure bug.3.0.4 Feb-24-08Fix x86 OpenBSD configury.3.0.3 Feb-22-08Enable x86 OpenBSD thanks to Thomas Heller, andx86-64 FreeBSD thanks to Björn König and Andreas Tobler.Clean up test instruction in README.3.0.2 Feb-21-08Improved x86 FreeBSD support.Thanks to Björn König.3.0.1 Feb-15-08Fix instruction cache flushing bug on MIPS.Thanks to David Daney.3.0.0 Feb-15-08Many changes, mostly thanks to the GCC project.Cygnus Solutions is now Red Hat.[10 years go by...]1.20 Oct-5-98Raffaele Sena produces ARM port.1.19 Oct-5-98Fixed x86 long double and long long return support.m68k bug fixes from Andreas Schwab.Patch for DU assembler compatibility for the Alpha from RichardHenderson.1.18 Apr-17-98Bug fixes and MIPS configuration changes.1.17 Feb-24-98Bug fixes and m68k port from Andreas Schwab. PowerPC port fromGeoffrey Keating. Various bug x86, Sparc and MIPS bug fixes.1.16 Feb-11-98Richard Henderson produces Alpha port.1.15 Dec-4-97Fixed an n32 ABI bug. New libtool, auto* support.1.14 May-13-97libtool is now used to generate shared and static libraries.Fixed a minor portability problem reported by Russ McManus<mcmanr@eq.gs.com>.1.13 Dec-2-96Added --enable-purify-safety to keep Purify from complainingabout certain low level code.Sparc fix for calling functions with < 6 args.Linux x86 a.out fix.1.12 Nov-22-96Added missing ffi_type_void, needed for supporting void returntypes. Fixed test case for non MIPS machines. Cygnus Supportis now Cygnus Solutions.1.11 Oct-30-96Added notes about GNU make.1.10 Oct-29-96Added configuration fix for non GNU compilers.1.09 Oct-29-96Added --enable-debug configure switch. Clean-ups based on LCLintfeedback. ffi_mips.h is always installed. Many configurationfixes. Fixed ffitest.c for sparc builds.1.08 Oct-15-96Fixed n32 problem. Many clean-ups.1.07 Oct-14-96Gordon Irlam rewrites v8.S again. Bug fixes.1.06 Oct-14-96Gordon Irlam improved the sparc port.1.05 Oct-14-96Interface changes based on feedback.1.04 Oct-11-96Sparc port complete (modulo struct passing bug).1.03 Oct-10-96Passing struct args, and returning struct values works forall architectures/calling conventions. Expanded tests.1.02 Oct-9-96Added SGI n32 support. Fixed bugs in both o32 and Linux support.Added "make test".1.01 Oct-8-96Fixed float passing bug in mips version. Restructured someof the code. Builds cleanly with SGI tools.1.00 Oct-7-96First release. No public announcement.Authors & Credits=================libffi was originally written by Anthony Green <green@redhat.com>.The developers of the GNU Compiler Collection project have madeinnumerable valuable contributions. See the ChangeLog file fordetails.Some of the ideas behind libffi were inspired by Gianni Mariani's freegencall library for Silicon Graphics machines.The closure mechanism was designed and implemented by Kresten KrabThorup.Major processor architecture ports were contributed by the followingdevelopers:alpha Richard Hendersonarm Raffaele Senacris Simon Posnjak, Hans-Peter Nilssonfrv Anthony Greenia64 Hans Boehmm32r Kazuhiro Inaokam68k Andreas Schwabmips Anthony Green, Casey Marshallmips64 David Daneypa Randolph Chung, Dave Anglin, Andreas Toblerpowerpc Geoffrey Keating, Andreas Tobler,David Edelsohn, John Hornkvistpowerpc64 Jakub Jelineks390 Gerhard Tonn, Ulrich Weigandsh Kaz Kojimash64 Kaz Kojimasparc Anthony Green, Gordon Irlamx86 Anthony Green, Jon Benistonx86-64 Bo ThorsenJesper Skov and Andrew Haley both did more than their fair share ofstepping through the code and tracking down bugs.Thanks also to Tom Tromey for bug fixes, documentation andconfiguration help.Thanks to Jim Blandy, who provided some useful feedback on the libffiinterface.Andreas Tobler has done a tremendous amount of work on the testsuite.Alex Oliva solved the executable page problem for SElinux.The list above is almost certainly incomplete and inaccurate. I'mhappy to make corrections or additions upon request.If you have a problem, or have found a bug, please send a note togreen@redhat.com.
Go to most recent revision | Compare with Previous | Blame | View Log
