Commit Graph

59140 Commits

Author SHA1 Message Date
nickysn
3a80895e34 * fixed section writing with smartlinking the sdcc-sdasz80 asm writer
git-svn-id: branches/z80@45103 -
2020-04-26 15:35:03 +00:00
nickysn
caecdfd51d + allow setting the heap size for the ZX Spectrum target
git-svn-id: branches/z80@45102 -
2020-04-26 14:58:47 +00:00
nickysn
3e38e3acc5 + added system_z80_embedded to systems_embedded
git-svn-id: branches/z80@45101 -
2020-04-26 14:45:31 +00:00
nickysn
3dec4eece8 * fixed Z80 setjmp/longjmp
git-svn-id: branches/z80@45100 -
2020-04-26 14:39:27 +00:00
nickysn
57912f673f + added PrintShortString to the ZX Spectrum RTL to help with testing
git-svn-id: branches/z80@45099 -
2020-04-26 14:03:42 +00:00
nickysn
6088f4a882 + added Mem[] support to the ZX Spectrum system unit
git-svn-id: branches/z80@45098 -
2020-04-26 13:58:04 +00:00
nickysn
c343286b3e + initialize more stuff in the system unit. Stdio doesn't work yet... :(
git-svn-id: branches/z80@45097 -
2020-04-26 13:38:15 +00:00
nickysn
ded6fdd04f * reduced the stack area to 256 bytes
git-svn-id: branches/z80@45096 -
2020-04-26 13:31:45 +00:00
nickysn
3afdab19a1 + implemented fpc_setjmp and fpc_longjmp for the Z80
git-svn-id: branches/z80@45095 -
2020-04-26 13:30:13 +00:00
florian
f72a795cc7 * fixed SetIsEmpty
git-svn-id: trunk@45094 -
2020-04-26 13:11:02 +00:00
nickysn
085fdcf3ab * moved the ZX Spectrum program load address lower, so we could fit more code and data
git-svn-id: branches/z80@45093 -
2020-04-26 12:30:05 +00:00
svenbarth
04554d7505 * use a more detailed error message if a type is not allowed for a generic constant parameter
git-svn-id: trunk@45092 -
2020-04-26 11:46:24 +00:00
svenbarth
287c298f37 * regenerate msg{txt,idx}.inc
git-svn-id: trunk@45091 -
2020-04-26 11:46:18 +00:00
svenbarth
258331e914 + add an explicit error message if a type is not supported for a generic constant parameter
git-svn-id: trunk@45090 -
2020-04-26 11:46:14 +00:00
svenbarth
a467332187 * fix for Mantis #36975: arraydefs are not allowed for generic types (this is only used for type declarations; for specializing constant strings which are char arrays are still allowed)
+ added test

git-svn-id: trunk@45089 -
2020-04-26 11:46:10 +00:00
svenbarth
7757306c78 * destroying constnone constsyms can occur when parsing a generic with a constant parameter that results in an error (e.g. unsupported type)
git-svn-id: trunk@45088 -
2020-04-26 11:46:06 +00:00
Jonas Maebe
f5e89ded35 * fix tc_bool_2_int simplification in case pass typecheck runs again, e.g.
after getting a copy of the node during CSE (fixes taddset4 compilation
    with LLVM after r44712)

git-svn-id: trunk@45087 -
2020-04-26 11:36:42 +00:00
nickysn
a9bf07d1f9 * the system unit now compiles with FULL_RTL, so the ifdefs are removed. Smartlinking is required from
now on, for compiling programs, because the system unit becomes too large without it.

git-svn-id: branches/z80@45086 -
2020-04-26 11:01:45 +00:00
nickysn
3d81dd0b00 * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the
label length limit

git-svn-id: branches/z80@45085 -
2020-04-26 10:42:07 +00:00
nickysn
4165e3224a - removed some commented out code that won't be needed
git-svn-id: branches/z80@45084 -
2020-04-26 10:36:17 +00:00
nickysn
55f12aac03 + added the tf_no_objectfiles_when_smartlinking target flag to z80-zxspectrum and z80-embedded
git-svn-id: branches/z80@45083 -
2020-04-26 10:22:07 +00:00
nickysn
b1f7770845 + enable tf_smartlink_library and support library-based smartlinking on the z80-embedded target
git-svn-id: branches/z80@45082 -
2020-04-26 10:19:06 +00:00
nickysn
f74d7f1059 * switch back to using an unscripted ar for the ZX Spectrum target
git-svn-id: branches/z80@45081 -
2020-04-26 10:11:20 +00:00
svenbarth
60345366f2 * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics
+ added tests

git-svn-id: trunk@45080 -
2020-04-25 22:12:35 +00:00
nickysn
df65884b7e * synchronized with trunk
git-svn-id: branches/z80@45079 -
2020-04-25 21:13:31 +00:00
nickysn
d359787c91 * loop forever in system_exit
git-svn-id: branches/z80@45078 -
2020-04-25 21:10:42 +00:00
nickysn
f6ab9729fb * fixed writing sdcc-sdldz80 library files to the linker script
git-svn-id: branches/z80@45077 -
2020-04-25 21:09:56 +00:00
florian
951f02d188 * correctly set register size
git-svn-id: trunk@45076 -
2020-04-25 19:35:28 +00:00
nickysn
db4581041a * moved $EXTRAOPT before $OBJ
git-svn-id: branches/z80@45075 -
2020-04-25 16:42:31 +00:00
nickysn
fdbf1f4b7f + supported scripted sdcc-sdar
git-svn-id: branches/z80@45073 -
2020-04-25 15:39:46 +00:00
nickysn
8bd38e0e29 + added new ar - sdcc-sdar
git-svn-id: branches/z80@45072 -
2020-04-25 15:28:35 +00:00
nickysn
3580c53b05 + enabled library-based smart linking for the ZX Spectrum target (not fully working yet)
git-svn-id: branches/z80@45071 -
2020-04-25 14:09:38 +00:00
Mattias Gaertner
bb4557c5fe fcl-passrc: allow static directive repetition in method implementation
git-svn-id: trunk@45069 -
2020-04-25 13:54:15 +00:00
nickysn
91289fddf4 + emit a label in g_intf_wrapper, even though the entire function is not yet implemented. For now, this
is enough to avoid linking errors

git-svn-id: branches/z80@45068 -
2020-04-25 13:45:37 +00:00
nickysn
2e55f9f4ab + support ait_realconst in the SDCC-SDASZ80 asm output
git-svn-id: branches/z80@45067 -
2020-04-25 13:12:18 +00:00
nickysn
a8fe46c0f5 + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the
output label to that length

git-svn-id: branches/z80@45066 -
2020-04-25 12:59:25 +00:00
nickysn
084b4187f8 * dollar sign changed to dollar in the SDCC-SDASZ80 asm output
git-svn-id: branches/z80@45065 -
2020-04-25 12:38:52 +00:00
nickysn
2bcd6f4c17 + apply ReplaceForbiddenAsmSymbolChars to all symbols in the SDCC-SDASZ80 assembler output
git-svn-id: branches/z80@45064 -
2020-04-25 12:38:23 +00:00
nickysn
0b73bfa3ab * the dummy fpc_InitializeUnits and fpc_do_exit procedures are only defined if system unit is compiled
without -dFULL_RTL

git-svn-id: branches/z80@45063 -
2020-04-25 11:13:32 +00:00
nickysn
b15c66b396 * fixed tcgz80.a_call_reg
git-svn-id: branches/z80@45062 -
2020-04-25 11:06:58 +00:00
nickysn
4b88e8f48e * fixed label placement in tcgz80.a_cmp_const_reg_label for 16-bit/32-bit operations OC_GT,OC_LT,OC_GTE,OC_LTE,OC_BE,OC_B,OC_AE,OC_A
git-svn-id: branches/z80@45061 -
2020-04-25 09:44:34 +00:00
pierre
687b31575b Update revision.inc after commit 44920
git-svn-id: trunk@45060 -
2020-04-25 08:14:17 +00:00
nickysn
1943e3fc63 * synchronized with trunk
git-svn-id: branches/z80@45059 -
2020-04-24 21:38:20 +00:00
nickysn
ac3eda1360 * fixed spurious "Expectloc is not set in firstpass" when compiler is compiled with EXTDEBUG, and
there's a node that's converted to another node in pass 1

git-svn-id: branches/z80@45058 -
2020-04-24 21:37:13 +00:00
florian
670e778643 + assembler optimization MovxMov2Movx
git-svn-id: trunk@45057 -
2020-04-24 20:56:56 +00:00
nickysn
26ba399a66 * synchronized with trunk
git-svn-id: branches/z80@45056 -
2020-04-24 19:16:32 +00:00
nickysn
6014305708 - removed debug writeln
git-svn-id: branches/z80@45055 -
2020-04-24 19:15:52 +00:00
Mattias Gaertner
1af626817e fcl-passrc: resolver: mode delphi: allow member with same name as ancestor member
git-svn-id: trunk@45054 -
2020-04-24 16:38:34 +00:00
svenbarth
bd01182ff0 * add support for AND, OR, XOR and NOT of integer values in preprocessor directives (Delphi allows that as well)
+ added test

git-svn-id: trunk@45053 -
2020-04-24 14:09:04 +00:00
svenbarth
ae2801c707 * use asInt64 instead of asInt to evaluate an Integer expression
git-svn-id: trunk@45052 -
2020-04-24 14:09:02 +00:00