Commit Graph

225 Commits

Author SHA1 Message Date
Michaël Van Canneyt
681a00a76f * Fixes based on feedback of team, fixes issue #40368 2023-07-30 11:19:47 +02:00
Michael VAN CANNEYT
ccfa38c68e * Dotted RTL compiles 2023-07-27 19:04:03 +02:00
Michaël Van Canneyt
f0ef6b08ed * Regenerated makefiles with subtarget support 2023-07-24 16:16:37 +02:00
Michael VAN CANNEYT
78374bf772 * Synchronize API for AnsiString/Unicode string, keep string where possible. 2023-07-24 15:38:09 +02:00
Michael VAN CANNEYT
96c83e7f39 * move $H here 2023-07-14 17:26:11 +02:00
Michael VAN CANNEYT
f6beba0b0b * string -> shortstring 2023-07-14 17:26:11 +02:00
Michael VAN CANNEYT
2ce2bab2a6 * Char -> AnsiChar 2023-07-14 17:26:09 +02:00
Nikolay Nikolov
fa27856478 + added promising _start and _initialize exports 2023-06-17 14:34:09 +03:00
Nikolay Nikolov
b97f3a08ed * since exporting webassembly globals doesn't yet work accross units, added a
workaround by using property getters and setters
2023-06-11 15:00:56 +03:00
Nikolay Nikolov
b247302871 + initial attempt (not fully working, yet) at implementing WebAssembly suspending externals 2023-06-11 14:07:35 +03:00
marcoonthegit
452ec93f06 * implement waitformultiple for win32 only.
* Change interface to allow for COM waiting + a basic windows implementation. (only for desktop apps? Use msgwait* for the rest?)
2023-05-20 14:37:26 +02:00
Dmytro Bogatskyy
327aac7f24 Add aarch64-iphonesim target 2023-03-27 18:45:00 +00:00
Jinyang He
783bbb66f9 Update Makefiles 2023-02-05 19:18:48 +00:00
Nikolay Nikolov
e3139fea21 + setup a thread manager (functions are still not yet implemented), when the WASI RTL is compiled with multithreading support 2022-07-14 05:14:20 +03:00
Nikolay Nikolov
65d8c3d7eb * refactored duplicated code for epoch to datetime and vice versa conversion
between the dos and sysutils units for the WASI platform
2022-06-25 00:40:25 +03:00
marcoonthegit
9e70f49745 * fix missing ifdef for the non win32/64/unix targets.
* also do watcom.
2022-06-01 16:56:02 +02:00
marcoonthegit
e5ac0b2689 * anonymous method overloads for synchronize/queue. 2022-06-01 13:54:06 +02:00
Michaël Van Canneyt
4765d885df * Export wasiAlloc, wasiFree 2022-05-27 19:16:52 +02:00
Nikolay Nikolov
7cac9d2f02 + added AtomicStore() to the WebAssembly unit 2022-05-25 19:39:17 +03:00
Pierre Muller
f12752372f Regenerate Makefile after: Add implicit units to wasi rtl 2022-05-25 18:34:10 +02:00
Pierre Muller
f4964691b0 Add implicit units to wasi rtl 2022-05-25 18:34:10 +02:00
Nikolay Nikolov
585d0cf574 + added unit WebAssembly for WebAssembly-specific stuff. Currently contains
the AtomicFence intrinsic, which emits the atomic.fence instruction.
2022-05-24 14:50:42 +03:00
Nikolay Nikolov
8c562995d7 * regenerate makefiles with latest fpcmake 2022-05-24 14:01:59 +03:00
Nikolay Nikolov
a8b789d183 * patch from Pierre for working around the exitcode <= 125 limitation in wasmtime 2022-05-24 10:15:44 +03:00
Michaël Van Canneyt
1b22a68fc6 * Export wasiAlloc and wasiFree 2022-05-18 14:48:11 +02:00
Pierre Muller
497dd20a08 Regenerate Makefile's with trunk fpcmake 2022-03-27 08:23:22 +00:00
inoussa
163d2ab344 Unicode' unicodenumtable.pas removed : update Makefile.fpc. 2022-03-26 21:17:54 +00:00
Pierre Muller
2f28c5596f Regenerate all Makefile's to fix problem on x86_64 linux 2022-03-07 23:46:15 +00:00
Pierre Muller
ad2ac98858 Update Makefile's 2022-03-07 22:35:29 +00:00
Nikolay Nikolov
590c878690 + added separate startup code for libraries, that declares _initialize, instead of _start 2022-02-16 05:24:41 +02:00
Pierre Muller
4da4c96349 Regenerate Makefile's with mips gcc fixes and new enabled mips64-linux target 2022-02-15 15:45:15 +00:00
Nikolay Nikolov
21593942a1 * regenerate all makefiles with the latest fpcmake 2022-02-13 15:26:54 +02:00
Nikolay Nikolov
68cd1c3973 + define USE_NOTHREADMANAGER in the WASI system unit 2022-01-26 16:39:29 +02:00
Nikolay Nikolov
b407b67ca1 * regenerate all makefiles with latest fpcmake 2022-01-19 07:08:32 +02:00
Robert Roland
53e5a4a03a Adding aaarch64-embedded target
This adds support for aarch64-embedded, specifically for the Raspberry Pi 3.

Uses UART0 at 115200 baud 8N1 for console IO.
2022-01-05 12:29:00 +00:00
Pierre Muller
271ba59cf1 All Makefile's regenerated 2021-11-25 22:13:32 +00:00
florian
65ef6f1f37 * regenerated Makefiles 2021-11-24 22:50:37 +01:00
Nikolay Nikolov
03513720a3 * fixed range check error in the DOS unit 2021-10-20 14:35:52 +03:00
Nikolay Nikolov
6921b968f1 - removed TWasiSearchRec.Mode, because it was unused 2021-10-19 17:31:02 +03:00
Nikolay Nikolov
8c39213d39 + implemented DOS.FSearch for WASI 2021-10-19 16:24:43 +03:00
Nikolay Nikolov
8e730d20db + implemented FindFirst, FindNext and FindClose in SysUtils for the WASI platform 2021-10-19 15:39:59 +03:00
Nikolay Nikolov
090cc8fa8f * moved the FindFirst/FindNext/FindClose code from unit DOS to WasiUtil, using
RawByteString. This will allow to reuse the same implementation in SysUtils.
2021-10-19 13:39:20 +03:00
Nikolay Nikolov
0ead28c1e0 - removed the RtlInfoType record, because it is only used only once in a local
variable. Use an anonymous record instead.
2021-10-19 12:01:14 +03:00
Nikolay Nikolov
6cd88575c6 - removed unused, commented out fields from the RtlInfoType record 2021-10-19 11:51:25 +03:00
Nikolay Nikolov
78c4585b53 * the FNMatch private helper function moved from unit DOS to unit WasiUtil, and
changed to have rawbytestring parameters, so it can be used from SysUtils as
  well.
2021-10-19 11:36:01 +03:00
Nikolay Nikolov
de3ab7e46b * added the fpc_wasi_path_readlink_ansistring helper function to unit wasiutil 2021-10-19 09:39:25 +03:00
Nikolay Nikolov
b2a0df0d10 * ConvertToFdRelativePath removed from the interface part of the WASI system
unit (to avoid cluttering the WASI system unit interface with platform
  dependent routines) and added to a new unit, called wasiutil
2021-10-19 09:06:56 +03:00
Nikolay Nikolov
21d843128d + added a wrapper function around __wasi_path_readlink that calls it iteratively
with doubling buffer sizes, starting with 64 bytes, until it reaches 16384
  bytes, and reads the link into a rawbytestring. Use that function in all
  places in the WASI rtl that need to read a symlink.
2021-10-15 14:33:43 +03:00
Nikolay Nikolov
34587a647f + init the ansistring upper and lower case tables in the WASI SysUtils unit initialization 2021-10-13 06:39:42 +03:00
Nikolay Nikolov
0934df505c + implemented SysUtils.GetLocalTime for WASI 2021-10-13 01:29:04 +03:00