mes/lib
Jan (janneke) Nieuwenhuizen 189ea8eb9d x86_64: build: Cater for M2-Planet.
* build-aux/cflags.sh: Set cc_cpu.
* build-aux/config.sh.in (cc_cpu): Export.
* build-aux/export.make (cc_cpu): Likewise.
* kaem.arm (cc_cpu): New variable.
* kaem.x86 (cc_cpu): New variable.
* kaem.run (cc_cpu): New variable.  Define __<cc_cpu>__.
* scaffold/argv.kaem (cc_cpu): Likewise.  Define __linux__
* scaffold/global-array.kaem (cc_cpu): Likewise.
* scaffold/hello.kaem (cc_cpu): Likewise.
* scaffold/local-array.kaem (cc_cpu): Likewise.
* scaffold/local-static-array.kaem (cc_cpu): Likewise.
* scaffold/main.kaem (cc_cpu): Likewise.
* scaffold/read.kaem (cc_cpu): Likewise.
* kaem.x86_64: New file.
lib/m2/x86_64/ELF-x86_64.hex2,
lib/m2/x86_64/x86_64_defs.M1: New files, imported from M2Libc.
lib/linux/x86_64-mes-m2/_exit.c,
lib/linux/x86_64-mes-m2/_write.c,
lib/linux/x86_64-mes-m2/crt1.M1,
lib/linux/x86_64-mes-m2/crt1.c,
lib/linux/x86_64-mes-m2/syscall.c: New files, adapted for M2-Planet
calling convention from ...
* lib/linux/x86_64-mes-mescc: ... here.
* build-aux/build.sh.in: Also allow kaem build for x86_64.
* include/mes/lib-mini.h[__M2__]: Define as sizeof (void*).
* include/mes/mes.h[__M2__](M2_CELL_SIZE): Define as sizeof (struct scm).
* lib/x86_64-mes/x86_64.M1 (add____$i8,%rbp, mov____%rdi,%rbp): New
defines.
* src/posix.c (TIME_UNITS_PER_SECOND): Cater for 64bit M2-Planet.
2023-11-05 09:36:26 +01:00
..
arm-mes ARM: Fix unsigned modulo. 2022-09-12 09:47:28 +02:00
arm-mes-gcc mescc: Mes C Library: ARM: setjmp.c: Inline fake asm. 2021-01-23 08:43:46 +01:00
arm-mes-mescc Implement setjmp for ARM mescc. 2020-06-12 23:20:17 +02:00
ctype lib: Support uppercase hex conversions. 2023-01-31 08:22:49 -08:00
dirent build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
freebsd mescc: Mes C Library: crt: Support more than 255 command line parameters. 2021-05-02 14:22:21 +02:00
gnu mescc: Mes C Library: Split _exit.c, _write.c from mini.c. 2021-01-23 08:43:45 +01:00
linux x86_64: build: Cater for M2-Planet. 2023-11-05 09:36:26 +01:00
m2 x86_64: build: Cater for M2-Planet. 2023-11-05 09:36:26 +01:00
mach hurd: Fixes for upgrade to debian-hurd-20190220.img. 2019-12-13 21:52:31 +01:00
math mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
mes lib: __assert_fail: Remove M2-Planet workarounds. 2023-05-03 08:04:32 +02:00
posix core: Move M2_PTR_SIZE, M2_CELL_SIZE to include file. 2023-05-03 08:04:32 +02:00
stdio lib: Fix compile warnings. 2023-02-12 23:02:24 +01:00
stdlib kaem: read: Remove --bootstrap-mode. 2023-05-02 10:22:45 +02:00
string Mes C Library: memchr: Avoid compile warning. 2022-04-30 16:40:57 +02:00
stub kaem.run: Remove --bootstrap-mode. 2023-05-03 08:03:48 +02:00
tests DRAFT lib: tests: 17-compare-unsigned-le: Add case from 7s-unsigned-compare. 2023-11-05 09:36:11 +01:00
x86-mes kaem: scaffold/argv.kaem. 2020-07-15 22:15:36 +02:00
x86-mes-gcc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86-mes-mescc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86_64-mes x86_64: build: Cater for M2-Planet. 2023-11-05 09:36:26 +01:00
x86_64-mes-gcc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86_64-mes-mescc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
libtcc1.c libtcc1: Fix integer division, modulo and shifting procedures. 2021-03-14 11:05:00 +01:00