Commit Graph

153 Commits

Author SHA1 Message Date
Wolfgang Thaller
cb554ed40f Rez: successful parse. 2014-10-05 23:52:34 +02:00
Wolfgang Thaller
7581140436 fix a minor bug in Launcher, add -Wl,-gc-sections to generate smaller executables 2014-10-05 23:47:37 +02:00
Wolfgang Thaller
04e7e64a55 MakeAPPL: add code for reading resources 2014-10-01 23:51:20 +02:00
Wolfgang Thaller
85c8063cac output applications in BasiliskII-compatible format 2014-09-30 19:21:41 +02:00
Wolfgang Thaller
04d8465b3b remove some dead code 2014-09-30 19:20:52 +02:00
Wolfgang Thaller
8758a45f0f be a little more generous in default 'SIZE' resource 2014-09-30 18:41:15 +02:00
Wolfgang Thaller
3f2a63ff40 configure gcc to pass the right linker flags & simplify CMakeLists
It is no longer necessary to pass special compiler options in order to compile an application.
2014-09-30 16:25:27 +02:00
Wolfgang Thaller
4e766452b4 reduce namespace pollution from console library 2014-09-30 16:25:27 +02:00
Wolfgang Thaller
c9f832b2c9 malloc: set errno on out-of-memory 2014-09-30 16:25:26 +02:00
Wolfgang Thaller
3911cb2fde _start(): Use exit() instead of ExitToShell() 2014-09-30 16:25:26 +02:00
Wolfgang Thaller
e6df3abfe0 clean up _start(): it is now safe to call OS traps without inline assembly. 2014-09-30 16:25:26 +02:00
Wolfgang Thaller
eb5d22bac5 add test program for global constructors/destructors 2014-09-30 16:25:25 +02:00
Wolfgang Thaller
831cbc3aa9 Merge pull request #8 from clehner/master
A couple more glue functions
2014-09-29 09:18:55 +02:00
Charles Lehner
6f2812ca65 Add OpenDriver and CloseDriver glue 2014-09-28 22:54:46 -04:00
Charles Lehner
fa39132cdc Add GetWDInfo glue 2014-09-28 11:18:27 -04:00
Wolfgang Thaller
073047e119 fix pascal functions returning void 2014-09-28 02:31:31 +02:00
Wolfgang Thaller
113b7407e1 Split App2 directory into TestApps/ and Console/ 2014-09-27 17:21:03 +02:00
Wolfgang Thaller
50ce1d2bdd asfilter: clean up temp files 2014-09-27 17:14:45 +02:00
Wolfgang Thaller
d4439bbdcf Merge pull request #7 from clehner/master
Add some File Manager functions
2014-09-26 19:47:35 +02:00
Charles Lehner
5ec06b0605 Add SetEOF 2014-09-26 09:53:08 -04:00
Charles Lehner
3bd859aaa3 Add file Create function 2014-09-26 01:38:58 -04:00
Charles Lehner
c6b5221803 Add FSWrite, GetFPos, SetFPos 2014-09-26 01:05:40 -04:00
Charles Lehner
fda2e0a378 Add some Files Manager glue functions (#4) 2014-09-26 00:50:28 -04:00
Wolfgang Thaller
cd842777c9 Some fixes to make it work again on Mac OS X 2014-09-25 22:50:22 +02:00
Wolfgang Thaller
cfa92dcc02 use pascal calling convention for one function in raytracer.c, to make it easier to notice any bugs 2014-09-25 21:10:29 +02:00
Wolfgang Thaller
5648c5be94 consider instructions of the form move.x (%ax)+, -(%ax) as no-op instructions.
They really don't do anything, and they confuse the rest of the
compiler when they are generated as a result of passing the result of one
pascal function to another function.
2014-09-25 18:56:56 +02:00
Wolfgang Thaller
025ebb6397 remove one more assert from expr.c:fixup_args_size_notes which got tripped by earlier hacks. 2014-09-25 11:21:13 +02:00
Wolfgang Thaller
aa1c71d17e move pragma code to a separate file 2014-09-25 02:47:19 +02:00
Wolfgang Thaller
a9ac8da693 types.txt is no longer needed 2014-09-25 02:03:18 +02:00
Wolfgang Thaller
afc0db27f6 forgot to mention pascal strings 2014-09-25 01:59:39 +02:00
Wolfgang Thaller
3a93c027db update README 2014-09-25 01:58:30 +02:00
Wolfgang Thaller
17954e11d2 clean up asfilter (remove unneeded functionality) 2014-09-25 01:58:24 +02:00
Wolfgang Thaller
4d936a889c PrepareHeaders.hs is no longer needed.
Instead, there is prepare-headers.sh which only needs to patch ConditionalMacros.h
2014-09-25 01:47:49 +02:00
Wolfgang Thaller
05f4c57615 support #pragma parameter 2014-09-25 01:45:15 +02:00
Wolfgang Thaller
7c33a47916 glue code must be declared pascal 2014-09-25 01:44:21 +02:00
Wolfgang Thaller
07451171d1 make sure that output_call is actually called 2014-09-24 22:39:18 +02:00
Wolfgang Thaller
03501ca622 silence some debug output 2014-09-24 22:38:31 +02:00
Wolfgang Thaller
5383bc9457 remove lots of stuff from PrepareHeaders 2014-09-24 22:06:22 +02:00
Wolfgang Thaller
ea8e92e679 magicinline is dead, long live raw_inline 2014-09-24 22:06:01 +02:00
Wolfgang Thaller
dc386a4845 hack 68000-compatible replacement for RTD instruction into asfilter 2014-09-24 22:05:01 +02:00
Wolfgang Thaller
3f1eec11f9 allow defining pascal functions 2014-09-24 20:48:44 +02:00
Wolfgang Thaller
a055a3faa1 register parameters via __attribute__((__regparam__("d0(a0,d0)"))) 2014-09-24 02:54:03 +02:00
Wolfgang Thaller
db62b69fae try to suppress sibcalls to magic_inline functions 2014-09-24 02:54:03 +02:00
Wolfgang Thaller
366768b135 Revert "butcher fixedbenchmark to find a bug."
This reverts commit 163ec2bb26958199549716d45297b1e427d6b0bd.
2014-09-24 02:54:02 +02:00
Wolfgang Thaller
1de00c3f09 gcc/reload pass: don't eliminate %fp if (%sp)+ is present.
For instructions such as "MOVE (%sp)+, x(%sp)", GCC gets the offset wrong.
2014-09-24 02:54:02 +02:00
Wolfgang Thaller
cf2a08b7de butcher fixedbenchmark to find a bug. 2014-09-24 02:54:02 +02:00
Wolfgang Thaller
c31479ee7e don't be too eager to skip things in fixup_args_size_notes. 2014-09-24 02:54:01 +02:00
Wolfgang Thaller
f45ead7b6c use PUSH_ROUNDING in find_args_size_adjust 2014-09-24 02:54:01 +02:00
Wolfgang Thaller
7c526098af disable an assert in gcc/combine.c that seems to assume that args_size == stack adjustment 2014-09-24 02:54:01 +02:00
Wolfgang Thaller
606d434731 experiment with variations on stack adjustment 2014-09-24 02:54:00 +02:00