Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Upgrade to latest version of dyncall lib, which has Win64 fixes among…
…st other things.
- Loading branch information
Showing
261 changed files
with
8,540 additions
and
3,662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| Daniel Adler <dadler@uni-goettingen.de> | ||
| Tassilo Philipp <tphilipp@potion-studios.com> | ||
| Olivier Chafik <olivier.chafik@gmail.com> | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| - dyncall sparc64 port: works fine on Debian 6, but has issues on OpenBSD and Solaris regarding passing of float and double values. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| DynCall Project | ||
|
|
||
| The dyncall library encapsulates architecture-, OS- and compiler-specific function call semantics in a virtual "bind argument parameters from left to right and then call" interface allowing programmers to call C functions in a completely dynamic manner. In other words, instead of calling a function directly, the dyncall library provides a mechanism to push the function parameters manually and to issue the call afterwards. | ||
| This means, that a program can determine at runtime what function to call, and what parameters to pass to it. The library is written in C and assembly and provides a very simple C interface to program against. | ||
|
|
||
| The library comes in very handy to power flexible message systems, dynamic function call dispatch mechanisms, closure implementations or even to bridge different programming languages. | ||
| When it comes to language bindings, the dyncall library provides a clean and portable C interface to dynamically issue calls to foreign code using small call kernels written in assembly. Instead of providing code for every bridged function call, which unnecessarily results in code bloat, only a couple of instructions are used to invoke every possible call. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| Copyright (c) 2007-2010 Daniel Adler <dadler@uni-goettingen.de>, | ||
| Tassilo Philipp <tphilipp@potion-studios.com> | ||
|
|
||
| Permission to use, copy, modify, and distribute this software for any | ||
| purpose with or without fee is hereby granted, provided that the above | ||
| copyright notice and this permission notice appear in all copies. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
|
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #include "buildsys/dynmake/Makefile.base.M" | ||
|
|
||
| all: | ||
| cd dyncall _(SHELL_COMMAND_SEPARATOR) _(MAKE) _(MAKEFLAGS_USER) _(MAKEFLAG_FILE) _(MAKE_DEFAULT_FILE) | ||
| cd dynload _(SHELL_COMMAND_SEPARATOR) _(MAKE) _(MAKEFLAGS_USER) _(MAKEFLAG_FILE) _(MAKE_DEFAULT_FILE) | ||
| cd dyncallback _(SHELL_COMMAND_SEPARATOR) _(MAKE) _(MAKEFLAGS_USER) _(MAKEFLAG_FILE) _(MAKE_DEFAULT_FILE) | ||
|
|
||
| clean: | ||
| cd dyncall _(SHELL_COMMAND_SEPARATOR) _(MAKE) _(MAKEFLAGS_USER) _(MAKEFLAG_FILE) _(MAKE_DEFAULT_FILE) clean | ||
| cd dynload _(SHELL_COMMAND_SEPARATOR) _(MAKE) _(MAKEFLAGS_USER) _(MAKEFLAG_FILE) _(MAKE_DEFAULT_FILE) clean | ||
| cd dyncallback _(SHELL_COMMAND_SEPARATOR) _(MAKE) _(MAKEFLAGS_USER) _(MAKEFLAG_FILE) _(MAKE_DEFAULT_FILE) clean | ||
|
|
||
| tests: | ||
| cd test _(SHELL_COMMAND_SEPARATOR) _(MAKE) _(MAKEFLAGS_USER) _(MAKEFLAG_FILE) _(MAKE_DEFAULT_FILE) | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| MAKEFILE = Makefile.embedded | ||
| MAKE_CMD = ${MAKE} -f ${MAKEFILE} | ||
| .PHONY: all tests clean bsd linux sun sun-64bit sun-gcc sun-gcc-64bit | ||
| all: | ||
| cd dynload ; ${MAKE_CMD} | ||
| cd dyncall ; ${MAKE_CMD} | ||
| cd dyncallback ; ${MAKE_CMD} | ||
| tests: | ||
| cd test ; ${MAKE_CMD} | ||
| clean: | ||
| cd dynload ; ${MAKE_CMD} clean | ||
| cd dyncall ; ${MAKE_CMD} clean | ||
| cd dyncallback ; ${MAKE_CMD} clean | ||
| cd test ; ${MAKE_CMD} clean | ||
| bsd: | ||
| ${MAKE_CMD} all | ||
| linux: | ||
| ${MAKE_CMD} all | ||
| linux64: | ||
| CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all | ||
| minix-gcc: | ||
| cd dyncall ; CC=gcc CFLAGS= ${MAKE_CMD} | ||
| cd dyncallback ; CC=gcc CFLAGS= ${MAKE_CMD} | ||
| osx: | ||
| ${MAKE_CMD} all | ||
| osx-universal: | ||
| CFLAGS="${CFLAGS} -arch i386 -arch x86_64 -arch ppc" ASFLAGS="${ASFLAGS} -arch i386 -arch x86_64 -arch ppc" AR="libtool" ARFLAGS="-static -o" ${MAKE_CMD} all | ||
| sun: | ||
| CFLAGS="${CFLAGS}" ${MAKE_CMD} all | ||
| sun-64bit: | ||
| CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all | ||
| sun-gcc: | ||
| CC=gcc CFLAGS="${CFLAGS} -fPIC" ${MAKE_CMD} all | ||
| sun-gcc-64bit: | ||
| CC=gcc CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| MAKEFILE ?= Makefile.generic | ||
| MAKE_CMD = ${MAKE} -f ${MAKEFILE} | ||
|
|
||
| .PHONY: all clean install test osx-universal linux bsd | ||
|
|
||
| all: | ||
| cd dyncall ; ${MAKE_CMD} | ||
| cd dynload ; ${MAKE_CMD} | ||
| cd dyncallback ; ${MAKE_CMD} | ||
|
|
||
| clean: | ||
| cd dyncall ; ${MAKE_CMD} clean | ||
| cd dynload ; ${MAKE_CMD} clean | ||
| cd dyncallback ; ${MAKE_CMD} clean | ||
|
|
||
| install: | ||
| cd dyncall ; ${MAKE_CMD} install | ||
| cd dynload ; ${MAKE_CMD} install | ||
| cd dyncallback ; ${MAKE_CMD} install | ||
|
|
||
| test: | ||
| cd test ; ${MAKE_CMD} | ||
|
|
||
| osx-universal: | ||
| ${MAKE_CMD} CPPFLAGS="-arch i386 -arch ppc -arch x86_64" MKLIB="libtool -static -o" | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| Some experiences with configure2 and Makefile.generic | ||
|
|
||
| NetBSD/FreeBSD: | ||
|
|
||
| Embedded | ||
| Default NetBSD make: | ||
| make -f Makefile.generic | ||
| (cd test ; LDFLAGS=-lm make -f Makefile.generic) | ||
|
|
||
| Configure: | ||
| in-source: | ||
| ./configure2 | ||
| make | ||
| make install DESTDIR=/tmp | ||
| Out-of-source: | ||
| mkdir build | ||
| cd build | ||
| ../configure2 | ||
| make | ||
|
|
||
| OpenBSD: | ||
| Embedded | ||
| Default OpenBSD make: | ||
| make -f Makefile.generic | ||
| (cd test ; LDFLAGS=-lm make -f Makefile.generic all-c) | ||
|
|
Oops, something went wrong.