Commit Graph

49 Commits

Author SHA1 Message Date
nickysn
bc08af99b0 + initial implementation of resolving relative paths
git-svn-id: trunk@49524 -
2021-06-22 23:14:33 +00:00
nickysn
ba3383f7e3 + keep also the fds for the current dirs
git-svn-id: trunk@49523 -
2021-06-22 22:44:20 +00:00
nickysn
d3ce008cd3 + initial implementation of GetDir() for WASI
git-svn-id: trunk@49522 -
2021-06-22 22:35:32 +00:00
nickysn
0a384b0905 * enumerate preopened dirs on startup and store them in a list, accessible via global vars in the system unit
git-svn-id: trunk@49521 -
2021-06-22 20:51:19 +00:00
nickysn
e7a1ef962e + partially implemented the initial enumeration of preopened dirs
git-svn-id: branches/wasm@48356 -
2021-01-23 21:14:33 +00:00
nickysn
7799cd0f80 + implemented ParamStr and ParamCount for WASI
git-svn-id: branches/wasm@48355 -
2021-01-23 17:59:23 +00:00
nickysn
0f50c85b44 * prefixed all wasi api functions with __wasi_, similar to the C header
git-svn-id: branches/wasm@48353 -
2021-01-23 16:29:31 +00:00
nickysn
d5b8f6ac7a + added all the WASI API types and constants
git-svn-id: branches/wasm@48352 -
2021-01-23 16:21:53 +00:00
nickysn
04828b22f6 * WASI API consts, types and procs moved to separate include files
git-svn-id: branches/wasm@48351 -
2021-01-23 15:19:21 +00:00
nickysn
5dd7e116ce + added header comment with copyright and license info to the WASI system unit
git-svn-id: branches/wasm@48350 -
2021-01-23 14:56:23 +00:00
nickysn
6f20e32ddd + added argc and argv (not yet initialized), so that unit objpas compiles
git-svn-id: branches/wasm@48347 -
2021-01-23 07:34:09 +00:00
nickysn
a28eb39f4b + implemented WASI file close
git-svn-id: branches/wasm@48344 -
2021-01-23 07:04:32 +00:00
nickysn
fb29456a0a * fixed parameter of DebugWriteHexLongWord
git-svn-id: branches/wasm@48339 -
2021-01-23 05:00:21 +00:00
nickysn
cdb74f034c + call InitSystemThreads in the system unit startup for WASI
git-svn-id: branches/wasm@48313 -
2021-01-22 03:01:55 +00:00
nickysn
c8760b12d4 + initial attempt for implementing do_open. Not working yet
git-svn-id: branches/wasm@48311 -
2021-01-22 02:43:54 +00:00
nickysn
85ea2b9b11 + added the WASI errno constants
git-svn-id: branches/wasm@48309 -
2021-01-22 01:35:12 +00:00
nickysn
9b173ac119 + implemented do_isdevice for WASI
git-svn-id: branches/wasm@48308 -
2021-01-22 01:26:35 +00:00
nickysn
d6038c5709 + implemented do_read for WASI
git-svn-id: branches/wasm@48307 -
2021-01-22 01:04:19 +00:00
nickysn
7f60637c92 - removed the system unit startup code debug output
git-svn-id: branches/wasm@48303 -
2021-01-22 00:31:16 +00:00
nickysn
204b0a777d + implemented system_exit for WASI
git-svn-id: branches/wasm@48302 -
2021-01-22 00:28:13 +00:00
nickysn
d8f2d85474 * switch to wasi_snapshot_preview1
git-svn-id: branches/wasm@48301 -
2021-01-22 00:19:10 +00:00
nickysn
8866fcbc56 - removed the FULL_RTL ifdefs, i.e. always build a full rtl
git-svn-id: branches/wasm@48300 -
2021-01-22 00:16:34 +00:00
nickysn
5794afac54 + implemented do_write for WASI. Error handling is not yet done.
git-svn-id: branches/wasm@48299 -
2021-01-22 00:15:01 +00:00
nickysn
00d2f6273b + implemented OpenStdIO
git-svn-id: branches/wasm@48297 -
2021-01-22 00:04:42 +00:00
nickysn
bc0d510ee2 + added DebugWriteHexWord and DebugWriteHexLongWord
git-svn-id: branches/wasm@48296 -
2021-01-22 00:03:55 +00:00
nickysn
ae39e3da44 + endless loop in system_exit (for now)
git-svn-id: branches/wasm@48294 -
2021-01-21 23:22:44 +00:00
nickysn
dd47111e61 + call SysInitStdIO (empty for now) and clear InOutRes at startup
git-svn-id: branches/wasm@48293 -
2021-01-21 23:21:07 +00:00
nickysn
84bf3a390e + init exceptions and the unicode string manager
git-svn-id: branches/wasm@48291 -
2021-01-21 23:15:37 +00:00
nickysn
fe7fd69d5e + initialize heap in the system unit startup (but SysOSAlloc is not yet implemented)
git-svn-id: branches/wasm@48289 -
2021-01-21 22:22:08 +00:00
nickysn
11ed6adf63 + set IsConsole and IsLibrary in the wasi system unit startup
git-svn-id: branches/wasm@48288 -
2021-01-21 22:19:33 +00:00
nickysn
83f3d68537 + some system unit debug output
git-svn-id: branches/wasm@48287 -
2021-01-21 22:17:48 +00:00
nickysn
899d718895 + more WASI rtl functions (dummy, not yet implemented)
git-svn-id: branches/wasm@48240 -
2021-01-20 21:38:53 +00:00
nickysn
9f69800394 + added some more WASI RTL constants
git-svn-id: branches/wasm@48238 -
2021-01-20 21:23:40 +00:00
nickysn
a5fafea8d1 * more updates to attempt to get a larger part of the full RTL to compile for WASM32
git-svn-id: branches/wasm@47970 -
2021-01-02 13:01:39 +00:00
nickysn
bb42589829 + added DebugWriteLn
git-svn-id: branches/wasm@47961 -
2021-01-02 10:47:04 +00:00
nickysn
1911fcd8ce * fixed StrLen double definition when compiling WASI with -dFULL_RTL
git-svn-id: branches/wasm@47960 -
2021-01-02 09:02:32 +00:00
nickysn
9bd8b66e86 + first attempts to compile a full WASI rtl
git-svn-id: branches/wasm@47958 -
2021-01-02 08:05:02 +00:00
nickysn
76a3014e3a + added DebugWriteHexByte
git-svn-id: branches/wasm@47954 -
2021-01-02 07:30:21 +00:00
nickysn
7221e9fe7f + added DebugWriteHexDigit
git-svn-id: branches/wasm@47953 -
2021-01-02 07:28:56 +00:00
nickysn
b80a650c7d + added DebugWriteChar
git-svn-id: branches/wasm@47952 -
2021-01-02 07:27:13 +00:00
nickysn
065d2c718d * no need to copy the local var paramater in StrLen()
git-svn-id: branches/wasm@47948 -
2021-01-02 06:37:52 +00:00
nickysn
4b9397fce4 * our_iov converted to a local var
git-svn-id: branches/wasm@47931 -
2020-12-31 18:37:59 +00:00
nickysn
82e9cb0189 * our_nwritten converted to a local var
git-svn-id: branches/wasm@47930 -
2020-12-31 18:37:07 +00:00
nickysn
08ae48aebf * i in strlen converted to a local variable, because that now works
git-svn-id: branches/wasm@47928 -
2020-12-31 18:24:16 +00:00
nickysn
0858579b50 * the gp: pchar global variable converted to local, because the code generator can now cope with this
git-svn-id: branches/wasm@47922 -
2020-12-31 08:18:00 +00:00
nickysn
76c48eb705 + added DebugWrite to the WASI system unit
git-svn-id: branches/wasm@47182 -
2020-10-24 19:01:30 +00:00
nickysn
96052c8d92 * synchronized with trunk
git-svn-id: branches/wasm@46754 -
2020-09-02 23:53:36 +00:00
nickysn
893e08489d + added a dummy test rtl function that takes parameters and returns a result
git-svn-id: branches/wasm@46712 -
2020-08-26 23:03:45 +00:00
nickysn
16aa4f0dfd + added the minimal system unit from the wasm demo
git-svn-id: branches/wasm@46260 -
2020-08-05 16:02:51 +00:00