Commit Graph

1622 Commits

Author SHA1 Message Date
Nikolay Nikolov
1850aa96b5 + PS1: show linking message 2024-10-04 22:09:50 +03:00
Nikolay Nikolov
0c7aa1805d + PS1: allow creating a linker map file with the -Xm option 2024-10-04 22:06:07 +03:00
Nikolay Nikolov
c24cae29d6 + PS1: initialize StackLength and StackBottom 2024-10-04 16:45:12 +03:00
Nikolay Nikolov
9fa091f8f5 * reduced the default stack size for PS1 to 256KB 2024-10-04 16:23:13 +03:00
Kirill Kranz
57eba4032c removed InitSysInitUnitName 2024-10-02 21:29:53 +02:00
Kirill Kranz
cd3a06f66e link all the sdk bindings .o files 2024-10-02 21:29:47 +02:00
Kirill Kranz
66f73d466b psy-q-sdk lib duplicate named *.o files excluded from link 2024-09-29 16:59:02 +03:00
Kirill Kranz
a6eeaf2c72 set_source_info behind defines 2024-09-29 16:59:02 +03:00
Kirill Kranz
e9d8bcf484 hlcgcpu.pas: uses unit systems + t_ps1.pas: correct Message3 2024-09-29 16:58:12 +03:00
Kirill Kranz
9a8c6fe93d NtoLE() fix 2024-09-29 16:58:12 +03:00
Kirill Kranz
2f5cbbacb7 DynArrays works
because of InitHeap3, malloc3 and free3 functions from the psy-q-sdk
2024-09-29 16:58:12 +03:00
Kirill Kranz
ec2f18f8be compiles cube.pas example 2024-09-29 16:56:18 +03:00
Kirill Kranz
52651a7ede First compiler Build 2024-09-29 16:56:18 +03:00
Karoly Balogh
2bdfabe607 windows: fix external linking with binutils >= 2.36, based on a patch by Pierre Muller 2024-09-23 11:36:53 +02:00
Pierre Muller
f5336f6311 Set DynamicLinker for FreeBSD systems 2024-09-13 09:22:29 +00:00
Nikolay Nikolov
23debb77b3 * set procalign and loopalign to 0 for WebAssembly - code alignment is unnecessary, as this is a VM. 2024-09-11 04:12:00 +03:00
ccrause
d53a81e2d9 Exclude AW flags for sec_fpc data for embedded and freertos targets. 2024-09-01 20:22:17 +00:00
Nikolay Nikolov
44f58c702f * get rid of WebAssembly constant DefaultMaxMemoryForThreads, because it was
repeated twice. Instead, set maxheapsize correctly with the default value in
  init_parser.
2024-08-18 10:51:40 +03:00
florian
b499e7593a * corrected alignment for Risc-V on Linux 2024-08-16 19:55:34 +02:00
ccrause
10ec49d75b Remap .data with fpc specific information to outside normal memory range. 2024-08-12 20:10:30 +00:00
Nikolay Nikolov
7b05051fc1 * WebAssembly internal linker: add the .tbss section size to the result of GetBssSize 2024-08-11 03:29:39 +03:00
Nikolay Nikolov
914b1feceb * WebAssembly threads internal linker: create a startup function for
initializing shared memory (dummy for now)
2024-08-11 01:37:50 +03:00
Nikolay Nikolov
70ca28701b * WebAssembly threads internal linker: add the .tbss section to the linker
script in case threads are enabled
2024-08-10 20:10:19 +03:00
Nikolay Nikolov
0642f14552 * WebAssembly threads internal linker: declare the symbol __wasm_init_tls in the
.text section (function will be generated later by the linker)
2024-08-10 19:59:11 +03:00
Nikolay Nikolov
a87481cfa4 * WebAssembly threads internal linker: declare the __tls_base, __tls_size and
__tls_align symbols in the internal linker script if threads are enabled
2024-08-10 19:50:48 +03:00
Nikolay Nikolov
8bbb28ace8 + WASI: enable the generic stack checking 2024-08-06 05:00:14 +03:00
Nikolay Nikolov
3c027b0ba0 * WebAssembly threads: use the stack size, specified for the main thread (via
the $M directive, or the '-Cs' compiler option) as the default stack size for
  other spawned threads
2024-08-05 01:59:13 +03:00
Nikolay Nikolov
aaf536ae10 * WebAssembly: allow specifying the initial and max memory size via the $M
directive
2024-08-04 04:11:10 +03:00
florian
b71b5b771f * fixes building for ARM 2024-07-19 18:34:40 +02:00
Michael Ring
14b3c11c0d Initial support for esp32-c6-s2-s3. Support for idf versions 5.0.6 and 5.2.1 2024-07-18 20:16:04 +00:00
Nikolay Nikolov
a71995a521 * wasi internal linker: fixed crashes introduced by previous commit in
GetDataSize and GetBssSize
2024-06-28 00:30:12 +03:00
Nikolay Nikolov
6f8655ecc9 * split the sections strings into groups and add comments about the importance
of the section order and grouping. No functional changes.
2024-06-28 00:30:12 +03:00
Nikolay Nikolov
924d4b9b53 + wasm internal linker: count the 'fpc.reshandles' section towards the bss size
of the binary
2024-06-28 00:30:12 +03:00
Nikolay Nikolov
2828752587 + wasm internal linker: count the 'fpc.resources' section towards the binary
data size
2024-06-28 00:30:12 +03:00
Nikolay Nikolov
e17b6291f5 + WASI internal linker: add the 'fpc.resources' and 'fpc.reshandles' sections as well 2024-06-28 00:30:12 +03:00
Nikolay Nikolov
c491856533 * changed the resource object extension for the WASI platform to .or (similar to Linux) 2024-06-27 04:15:44 +03:00
Nikolay Nikolov
440a635bce + initial compiler support for WebAssembly resources. Requires WebAssembly
support in the fpcres utility, which is not implemented, yet.
2024-06-25 03:07:55 +03:00
ccrause
8f106b616b Move .data with fpc specific information to outside normal memory range. 2024-05-25 17:26:15 +00:00
ccrause
e56052bb32 Do not pass esp32c3.rom.newlib-time.ld to the linker, it causes the ROM version of _isatty_r to be linked instead of the newlib library version. 2024-05-25 17:26:15 +00:00
ccrause
7284e161a2 Group linker scripts and search paths 2024-05-25 17:26:15 +00:00
ccrause
c42bf9cdf5 Extend riscv32-freertos functionality for esp32c3 2024-05-25 17:26:15 +00:00
Michaël Van Canneyt
897caac4ac * Seems not all was committed 2024-05-13 14:00:36 +02:00
Pierre Muller
8511b0fc7b Increase default stack size to 8Mb for i386 and sparc solaris systems 2024-04-03 23:17:55 +02:00
Michael Ring
7c3ab69c50 Fixed missing section for Raspberry Pi Pico 2024-04-01 21:00:12 +00:00
Pierre Muller
c68ddc5360 Add $EMUL also for sparc CPU GNU linker call on solaris OS 2024-03-25 23:48:14 +01:00
Pierre Muller
3db060e47a Use writeUInt32LE/writeUInt16LE method to write multi-byte integer in importlib method in t_win unit (as all supported CPUs are little endian) 2024-01-25 01:01:06 +00:00
Nikolay Nikolov
9681378d37 + enable the WASI internal linker 2024-01-07 03:17:07 +02:00
Nikolay Nikolov
59c88f4c79 + WASI internal linker: added the .wasm_tags exe section to the linker script 2024-01-07 01:56:34 +02:00
Nikolay Nikolov
b8db469c48 + WASI internal linker: simplify linker script generation for the .text, .rodata, .data and .bss sections via the use of ScriptAddGenericSections 2024-01-06 23:26:14 +02:00
Nikolay Nikolov
749688b3b0 + WASI internal linker: also add .debug_frame and .debug_str sections to the output binary 2024-01-06 23:24:26 +02:00