carl
b4df26e79d
Better ANSI C compatibility and portability - part 1:
...
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
+ Initial support for CMake
+ Added support for sys_tmpdir for better portability.
2019-02-19 00:54:23 +08:00
carl
7317ae3291
* Initial support of CMake
2019-02-19 00:54:23 +08:00
carl
3214ddfa68
Better ANSI C compatibility and portability - part 1:
...
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
2019-02-19 00:54:23 +08:00
carl
288e81355e
* Add missing header file.
2019-02-19 00:54:23 +08:00
carl
bd25701a3f
* Initial support of CMake
2019-02-19 00:54:23 +08:00
carl
18730a361d
* Adapt to new sys_filesize prototype.
2019-02-19 00:54:23 +08:00
carl
8c7de90005
* Initial support of CMake
2019-02-19 00:54:23 +08:00
carl
7c7379c46f
Better ANSI C compatibility and portability - part 1:
...
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
+ Convert to sed scripts some shell scripts for better portability.
+ Reduce usage of em_path.h (TMPDIR is no longer hard coded)
2019-02-19 00:54:23 +08:00
carl
a4650360a3
* Initial support of CMake
...
+ Generation of header files is now made through a C program to make it more portable.
2019-02-19 00:54:23 +08:00
carl
0ac16f6116
Better ANSI C compatibility and portability - part 1:
...
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
+ Convert to sed scripts some shell scripts for better portability.
+ Reduce usage of em_path.h
2019-02-19 00:54:23 +08:00
carl
90d4797ff7
* Initial support of CMake
2019-02-19 00:54:23 +08:00
carl
0f75cc09ad
Better ANSI C compatibility and portability - part 1:
...
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
+ Convert to sed scripts some shell scripts for better portability.
+ Reduce usage of em_path.h
2019-02-19 00:54:23 +08:00
carl
4555c1c8cf
Better ANSI C compatibility and portability - part 1:
...
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
+ Convert to sed scripts some shell scripts for better portability.
+ Reduce usage of em_path.h
2019-02-19 00:54:23 +08:00
carl
fdf5da62d7
Better ANSI C compatibility and portability - part 1:
...
* Adapt to new sys_filesize prototype.
2019-02-19 00:54:23 +08:00
carl
796317e0e3
Better ANSI C compatibility and portability - part 1:
...
* Adapt to new sys_filesize prototype.
2019-02-19 00:54:23 +08:00
carl
2e1c7c37e7
Better ANSI C compatibility and portability - part 1:
...
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
+ Convert to sed scripts some shell scripts for better portability.
+ Reduce usage of em_path.h
2019-02-19 00:54:23 +08:00
carl
3ee29a17e9
Better ANSI C compatibility and portability - part 1:
...
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
+ Convert to sed scripts some shell scripts for better portability.
+ Reduce usage of em_path.h
2019-02-19 00:54:22 +08:00
David Given
52aa22dc80
Fix typo.
2019-02-18 11:04:23 +01:00
David Given
12a0421988
Minor improvements to the way types are expanded (should avoid embarassing ands
...
with 0xff).
2019-02-17 10:09:22 +01:00
David Given
c4ff0899dc
Merge pull request #171 from davidgiven/dtrg-comparisons
...
i80: a few more minor fixes
2019-02-16 01:23:27 +01:00
David Given
61d623c4d6
Add a few minor top optimisations.
2019-02-16 01:18:31 +01:00
David Given
6a8b298861
Fix typo where I was confusing sbi and sui, with hilarious results.
2019-02-16 01:18:21 +01:00
David Given
dfd75c770b
Merge pull request #170 from davidgiven/dtrg-i169
...
Fix driver crash when using -R
2019-02-15 23:56:00 +01:00
David Given
245478a030
Fix memory corruption when using -R; the values being stored in the list
...
weren't freeable when they should have been.
2019-02-15 23:40:42 +01:00
David Given
e976e10708
Reformat before editing.
2019-02-15 23:24:10 +01:00
David Given
d4d5eee1cd
Merge pull request #168 from davidgiven/dtrg-i167
...
i80: fix large stack frames
2019-02-15 23:12:12 +01:00
David Given
4474d6433a
Loading large constants now computes the stack offset correctly.
2019-02-15 23:03:01 +01:00
David Given
34c67698ef
Generate the proper function prologues for big stack frames.
2019-02-15 23:01:33 +01:00
David Given
e1ddbf969a
Merge pull request #166 from davidgiven/dtrg-comparisons
...
i80: grabbag of optimisations
2019-02-15 22:54:13 +01:00
David Given
8ca4d6ea1e
Cleanup.
2019-02-15 22:26:14 +01:00
David Given
c9467b683a
Add rules for converting smallnconst2 and smallpconst2 to registers, to stop
...
the conversion from happening via the stack. Star Trek goes from 39450 to 39384
bytes.
2019-02-15 22:20:07 +01:00
David Given
afd45acb89
Using regpair instead of hl_or_de is not, in fact, safe until we've stopped
...
using bc.
2019-02-15 21:38:17 +01:00
David Given
d63a359a49
Fix nearly all the comparisons, a lot of which were broken. Using a rst for
...
unsigned comparisons is surprisingly not that useful due to marshalling
overhead; it's only four bytes to do inline (plus jc), or six for a constant.
Also add some useful top optimisations. Star Trek goes from 39890 to 39450
bytes.
2019-02-15 21:30:27 +01:00
David Given
91c75f81b5
Call cmps rather than cmpu for bge... make cmps and cmpu rsts. Apply various
...
other tiny optimisations.
2019-02-15 00:38:39 +01:00
David Given
2924ce8ffa
Use nicely optimised helper tools to do signed comparisons of words. Star Trek
...
goes from 40452 to 39890 bytes.
2019-02-14 23:57:55 +01:00
David Given
0694cf34b0
Merge pull request #165 from davidgiven/dtrg-b164
...
i80: fix bad code in inl using faddrn
2019-02-14 23:29:41 +01:00
David Given
3c3d2a4520
Fix bad helper tool invocation for inl with faddrn.
2019-02-14 23:21:47 +01:00
David Given
cf6041c57f
Add failing test case.
2019-02-14 23:19:11 +01:00
David Given
44c8b53a2d
Merge pull request #163 from davidgiven/dtrg-regmoves
...
i80: fix pathological behaviour in asp
2019-02-14 00:13:41 +01:00
David Given
8eaa11ac72
Turns out that every time the compiler tried to do a stack retraction with asp,
...
it would flush registers onto the stack. This stops it doing this. Star Trek
goes from 40779 to 40452 bytes.
2019-02-14 00:05:08 +01:00
David Given
2deead3d3d
Merge pull request #161 from davidgiven/dtrg-faststack
...
i80: use helper functions for stack access
2019-02-13 22:56:18 +01:00
David Given
6e3ba8e9a0
Merge from default.
2019-02-13 22:46:00 +01:00
David Given
79a38ecc08
Instead of using parameterised rsts for stack access, add a huge swathe of
...
automatically built helper tools. Star Trek goes up from 40243 to 40779 bytes,
but should be a lot faster.
2019-02-13 22:45:22 +01:00
David Given
f70659f460
Don't do weird things if files starting with a hyphen exist in the build
...
directory.
2019-02-13 22:42:05 +01:00
David Given
37ded7e65d
Merge pull request #160 from davidgiven/dtrg-b159
...
i80, powerpc, mips: fix issue with logical operations and signed small constants
2019-02-13 21:16:06 +01:00
David Given
8200f041c2
Fix issue with logical operations and small signed constants which turned out
...
to affect multiple platforms.
2019-02-13 20:56:10 +01:00
David Given
eb57db75a4
Update test case to provoke bug.
2019-02-13 20:10:38 +01:00
David Given
55f3880f43
Merge pull request #158 from davidgiven/dtrg-b157
...
i80: fix bad code in comparisons
2019-02-12 22:29:01 +01:00
David Given
f4b45f1ed7
Fix bad code generation due to not correctly flushing the stack before
...
comparisons.
2019-02-12 22:19:07 +01:00
David Given
a2b5202081
Added a test case for #157 .
2019-02-12 22:08:08 +01:00