Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
11 kB · 357 lines
at lambda-parse
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358Status======
libffi-3.0.11 was released on April 11, 2012. 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.11
At the time of release, the following basic configurations have beentested:
|--------------+------------------|| Architecture | Operating System ||--------------+------------------|| Alpha | Linux || Alpha | Tru64 || ARM | Linux || ARM | iOS || AVR32 | Linux || HPPA | HPUX || IA-64 | Linux || M68K | FreeMiNT || M68K | RTEMS || MIPS | IRIX || MIPS | Linux || MIPS | RTEMS || MIPS64 | Linux || PowerPC | AMIGA || PowerPC | Linux || PowerPC | Mac OSX || PowerPC | FreeBSD || PowerPC64 | Linux || S390 | Linux || S390X | Linux || SPARC | Linux || SPARC | Solaris || SPARC64 | Linux || SPARC64 | FreeBSD || X86 | FreeBSD || X86 | Interix || 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 | Linux/x32 || X86-64 | OpenBSD || X86-64 | Windows/MingW ||--------------+------------------|
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 using Purify, 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 CC=path/to/msvcc.sh LD=link CPP=\"cl -nologo -EP\"
For 64-bit Windows builds, use CC="path/to/msvcc.sh -m64".You may also need to specify --build appropriately. When building with MSVCunder a MingW environment, you may need to remove the line in configurethat sets 'fix_srcfile_path' to a 'cygpath' command. ('cygpath' is notpresent in MingW, and is not required when using MingW-style paths.)
For iOS builds, run generate-ios-source-and-headers.py and thenlibffi.xcodeproj should work.
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.11 Apr-11-12 Add support for variadic functions (ffi_prep_cif_var). Add Linux/x32 support. Add thiscall, fastcall and MSVC cdecl support on Windows. Add Amiga and newer MacOS support. Add m68k FreeMiNT support. Integration with iOS' xcode build tools. Fix Octeon and MC68881 support. Fix code pessimizations. Lots of build fixes.
3.0.10 Aug-23-11 Add support for Apple's iOS. Add support for ARM VFP ABI. Add RTEMS support for MIPS and M68K. Fix instruction cache clearing problems on ARM and SPARC. Fix the N64 build on mips-sgi-irix6.5. Enable builds with Microsoft's compiler. Enable x86 builds with Oracle's Solaris compiler. Fix support for calling code compiled with Oracle's Sparc Solaris compiler. Testsuite fixes for Tru64 Unix. Additional platform support.
3.0.9 Dec-31-09 Add 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-08 Add *BSD, BeOS, and PA-Linux support.
3.0.7 Nov-11-08 Fix for ppc FreeBSD. (thanks to Andreas Tobler)
3.0.6 Jul-17-08 Fix for closures on sh. Mark the sh/sh64 stack as non-executable. (both thanks to Kaz Kojima)
3.0.5 Apr-3-08 Fix libffi.pc file. Fix #define ARM for IcedTea users. Fix x86 closure bug.
3.0.4 Feb-24-08 Fix x86 OpenBSD configury.
3.0.3 Feb-22-08 Enable x86 OpenBSD thanks to Thomas Heller, and x86-64 FreeBSD thanks to Björn König and Andreas Tobler. Clean up test instruction in README.
3.0.2 Feb-21-08 Improved x86 FreeBSD support. Thanks to Björn König.
3.0.1 Feb-15-08 Fix instruction cache flushing bug on MIPS. Thanks to David Daney.
3.0.0 Feb-15-08 Many changes, mostly thanks to the GCC project. Cygnus Solutions is now Red Hat.
[10 years go by...]
1.20 Oct-5-98 Raffaele Sena produces ARM port.
1.19 Oct-5-98 Fixed x86 long double and long long return support. m68k bug fixes from Andreas Schwab. Patch for DU assembler compatibility for the Alpha from Richard Henderson.
1.18 Apr-17-98 Bug fixes and MIPS configuration changes.
1.17 Feb-24-98 Bug fixes and m68k port from Andreas Schwab. PowerPC port from Geoffrey Keating. Various bug x86, Sparc and MIPS bug fixes.
1.16 Feb-11-98 Richard Henderson produces Alpha port.
1.15 Dec-4-97 Fixed an n32 ABI bug. New libtool, auto* support.
1.14 May-13-97 libtool 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-96 Added --enable-purify-safety to keep Purify from complaining about certain low level code. Sparc fix for calling functions with < 6 args. Linux x86 a.out fix.
1.12 Nov-22-96 Added missing ffi_type_void, needed for supporting void return types. Fixed test case for non MIPS machines. Cygnus Support is now Cygnus Solutions.
1.11 Oct-30-96 Added notes about GNU make.
1.10 Oct-29-96 Added configuration fix for non GNU compilers.
1.09 Oct-29-96 Added --enable-debug configure switch. Clean-ups based on LCLint feedback. ffi_mips.h is always installed. Many configuration fixes. Fixed ffitest.c for sparc builds.
1.08 Oct-15-96 Fixed n32 problem. Many clean-ups.
1.07 Oct-14-96 Gordon Irlam rewrites v8.S again. Bug fixes.
1.06 Oct-14-96 Gordon Irlam improved the sparc port.
1.05 Oct-14-96 Interface changes based on feedback.
1.04 Oct-11-96 Sparc port complete (modulo struct passing bug).
1.03 Oct-10-96 Passing struct args, and returning struct values works for all architectures/calling conventions. Expanded tests.
1.02 Oct-9-96 Added SGI n32 support. Fixed bugs in both o32 and Linux support. Added "make test".
1.01 Oct-8-96 Fixed float passing bug in mips version. Restructured some of the code. Builds cleanly with SGI tools.
1.00 Oct-7-96 First release. No public announcement.
Authors & Credits=================
libffi was originally written by Anthony Green <green@moxielogic.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 Thorsen
Jesper 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 to theauthor at green@moxielogic.com, or the project mailing list atlibffi-discuss@sourceware.org.