1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-15 14:57:22 +00:00

Add some FFI testing and more improvements to sysv abi.

Add support for integer return and floating point return variants, as
well as arguments on the stack. Start flushing out struct arguments.

Still needed:
- structs (packed and unpacked)
- complex numbers
- long doubles
- MASM alternative for windows (you can technically use sysv abi on
  windows)
- more calling conventions.
This commit is contained in:
Calvin Rose
2022-06-08 09:41:09 -05:00
parent 282d1ba22f
commit 3f27d78ab5
5 changed files with 349 additions and 131 deletions

View File

@@ -31,6 +31,8 @@
#include <stdio.h>
#include <errno.h>
#include <stddef.h>
#include <alloca.h> /* for ffi */
#if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED)
#include <time.h>