Commit graph

876 commits

Author SHA1 Message Date
ceriel eec2ea8ffe changed text; did not work properly 1988-07-13 17:39:20 +00:00
ceriel db95ccff91 updated; the int command now is an interpreter 1988-07-13 13:51:57 +00:00
ceriel 20e2452350 updated dependencies 1988-07-11 19:22:19 +00:00
ceriel 6d7522ba44 fixes for Xenix 1988-07-11 13:24:32 +00:00
ceriel 778baeb2c0 fixes for Xenix 1988-07-11 13:18:43 +00:00
ceriel cd54a85aec updated dependencies 1988-07-11 12:57:24 +00:00
ceriel 3aabba530d fixes for Xenix 1988-07-11 12:53:01 +00:00
dick 9dd080ae4b various improvements 1988-07-08 22:24:06 +00:00
ceriel d1a390924f we were lucky, but - indicates a range; corrected 1988-07-08 10:29:48 +00:00
ceriel 8fc459e811 fix: was wrong with constants causing overflow 1988-07-07 15:02:47 +00:00
ceriel beb142ed98 print longs with %ld 1988-07-07 14:19:16 +00:00
ceriel b4265c5407 removed the result3 variable; it was not used anymore 1988-07-07 09:59:32 +00:00
ceriel b365c53262 removed temp file 1988-07-06 18:18:46 +00:00
ceriel 2ea025fdb4 fixed previously introduced error 1988-07-06 09:43:05 +00:00
ceriel afc4d5211b made to fit on PDP-11 ... 1988-07-05 19:06:40 +00:00
ceriel 44014704a0 forgot C_magic 1988-07-05 18:27:10 +00:00
ceriel e1cb398e02 made to fit on PDP-11 1988-07-05 18:06:00 +00:00
ceriel 901d12332d removed faulty.h from makefile 1988-07-05 16:21:05 +00:00
ceriel a2905da259 don't use stdio.h 1988-07-05 10:53:53 +00:00
ceriel c10adfa7cf removed README 1988-07-04 15:24:24 +00:00
ceriel db0c67dd10 made to work 1988-07-04 13:41:47 +00:00
ceriel 93bdacae44 updated 1988-07-04 11:45:53 +00:00
ceriel c39c666834 Initial revision 1988-07-04 11:45:41 +00:00
ceriel bd5583311e corrected some more 1988-07-04 11:44:03 +00:00
ceriel 5157a5a186 several fixes for new basic compiler 1988-07-01 17:30:06 +00:00
ceriel c2af3d7faa allow for three digits in exponent 1988-07-01 11:56:08 +00:00
ceriel 6ade1e3215 Also export LONGREAL routines 1988-06-30 16:32:54 +00:00
ceriel 74c779b81e mods to handle forward references better 1988-06-30 14:50:30 +00:00
ceriel fa9e4c5ea3 corrected minor problem 1988-06-30 09:19:06 +00:00
ceriel 3ed0f85ba7 fixed typo 1988-06-29 13:13:49 +00:00
ceriel 77830f353c small fix 1988-06-29 10:49:24 +00:00
ceriel 184984d472 Minor adaptions to comments 1988-06-16 11:44:31 +00:00
ceriel 969b5221f5 make interface new_stackptr cleaner 1988-06-13 10:34:14 +00:00
ceriel 8f9818c385 Added short-hand for C_cal+C_asp, made interface new_stackptr cleaner 1988-06-13 10:29:36 +00:00
ceriel 0c386e3032 tolower was called without checking for isupper; adapted 1988-06-10 14:28:32 +00:00
ceriel f2b485740b adaptions for generation of compiler with embedded code-generator 1988-06-10 09:17:45 +00:00
ceriel 3d044db749 improved error messages with opaque types 1988-06-09 11:39:11 +00:00
ceriel 3fec1232da fixed problem with ReOrganize 1988-06-09 09:16:46 +00:00
ceriel 1347076988 changed behaviour of Allocate(..., 0) 1988-06-08 09:22:31 +00:00
ceriel 9fb5d02aa9 changed a comment 1988-06-07 12:34:04 +00:00
ceriel a22b21016e corrected cap.c 1988-06-03 09:36:08 +00:00
ceriel 5ce46ce603 removed faulty.h, updated Parameters 1988-06-03 09:33:29 +00:00
dick 885d03a020 Initial version 1988-05-30 17:17:16 +00:00
ceriel 066439ec19 changed int?? to em?? 1988-05-06 13:46:55 +00:00
ceriel b9943e0ca2 minor update 1988-05-03 15:17:13 +00:00
ceriel 2a1191bfc1 fixed very minor bug: strings should be aligned on word_boundaries 1988-05-03 15:04:30 +00:00
ceriel 58724710d1 Added some comments 1988-05-03 13:17:20 +00:00
ceriel e40b7407d5 declare some variables in init.c instead of runtime startoff 1988-05-03 12:44:32 +00:00
ceriel 781a1218a5 only increment line number on ASCII LF 1988-05-03 11:30:25 +00:00
ceriel 94bb3d3e04 improved checking 1988-05-03 09:03:19 +00:00
ceriel 7dcfb2b4ad Added a stripped version of the Unix module 1988-05-03 08:33:33 +00:00
ceriel 8b655cb67e Exchanged role of ALLOCATE/Allocate 1988-05-03 08:20:11 +00:00
ceriel 2468ee6d34 did not compile with NOPP defined 1988-05-02 15:37:13 +00:00
ceriel d5f6dfeb2a did not compile with USE_TMP not defined 1988-05-02 14:40:35 +00:00
ceriel 132e8d0baa minor fixes 1988-05-02 14:13:25 +00:00
ceriel f6f8a5e858 fixed another typo 1988-05-02 12:35:39 +00:00
ceriel e030fdc548 fixed typo 1988-05-02 08:46:58 +00:00
ceriel aadfe97a58 make to fit on PDP-11 again 1988-04-29 15:41:38 +00:00
ceriel 4d528bbc24 Added some unix signal handling 1988-04-29 14:38:36 +00:00
ceriel 23aca9118e improved clean entry 1988-04-29 09:22:57 +00:00
ceriel 69b293d86b types of case-labels are base-types 1988-04-29 09:16:51 +00:00
ceriel 0e501983f4 don't allow allocates bigger than MAX(INTEGER) 1988-04-28 15:13:44 +00:00
ceriel 2a11727622 updated to current situation 1988-04-28 13:38:24 +00:00
ceriel 673679e5eb improved trap handling 1988-04-27 18:11:33 +00:00
ceriel 5891ec12a0 corrected brk and sbrk somewhat 1988-04-27 18:02:59 +00:00
ceriel 420ca09aee improved; now also runs with interpreter 1988-04-27 13:01:25 +00:00
ceriel 39d3496f4b Added termcap.c 1988-04-26 18:23:40 +00:00
ceriel 8acf1542f6 updated dependencies 1988-04-26 16:15:25 +00:00
ceriel 5a7fa39fc9 updated dependencies 1988-04-26 16:03:36 +00:00
ceriel 8781ada304 generate more register messages 1988-04-26 15:33:48 +00:00
ceriel a0799c99ec Initial revision 1988-04-26 14:33:11 +00:00
ceriel db786790ee made epsd 1e-14 instead of 1e-17 1988-04-26 14:10:55 +00:00
ceriel bfd4554758 fixed: did not compute hexadecimal numbers right 1988-04-26 13:47:02 +00:00
ceriel 6722c28d81 Added comment 1988-04-26 13:04:04 +00:00
ceriel 7943327f7d corrected 1988-04-26 11:43:23 +00:00
ceriel 76a93fcbc3 better error checking in Storage module 1988-04-26 11:25:36 +00:00
ceriel 6c825b7892 fixed hexadecimal character class 1988-04-26 10:51:50 +00:00
ceriel 2bbecf2416 better argument checking of standard functions 1988-04-26 10:14:01 +00:00
ceriel d260937564 improved layout with varargs 1988-04-25 16:24:42 +00:00
ceriel 71dd29ae30 improved layout 1988-04-25 16:17:29 +00:00
ceriel 6607dc999e fixed; va_end(list) should be va_end(ap) 1988-04-25 15:31:58 +00:00
ceriel 093a970d7f generate scope info for functions 1988-04-25 12:55:25 +00:00
ceriel 9bd075e3a0 Added TableHandl.def 1988-04-25 09:28:10 +00:00
ceriel 4410cc5cdf main should return value 1988-04-22 16:00:01 +00:00
ceriel 48f7be1f8e corrected; did some shifts that have undefined result 1988-04-22 15:49:20 +00:00
ceriel e0d31020c8 made to conform to ACK rules 1988-04-21 18:48:15 +00:00
ceriel 5f4707b280 improved comments; should now be understandable for anyone who knows EM 1988-04-21 10:08:56 +00:00
ceriel e41fd6d8a9 corrected typo 1988-04-21 09:21:18 +00:00
ceriel 79e3ac1a26 improved setjmp 1988-04-20 16:58:29 +00:00
ceriel 536716ba84 rewritten setjmp: compiler now gives a bit more support 1988-04-20 15:33:17 +00:00
ceriel ae50580eff new handling of setjmp; now pass return address 1988-04-20 15:28:10 +00:00
ceriel b82c0d9bdd Added test 1988-04-20 10:45:09 +00:00
ceriel fee10c4735 Initial revision 1988-04-20 10:43:48 +00:00
ceriel 9d3f9ea496 fixed a small problem with the 'symmetric' option; also fixed a
problem with Hex numbers
1988-04-19 14:40:27 +00:00
ceriel da872ef789 assert macro has one parameter 1988-04-19 09:57:44 +00:00
ceriel eb6ed2df62 Added .distr file 1988-04-18 15:00:24 +00:00
ceriel c06568406c Initial revision 1988-04-18 10:24:30 +00:00
ceriel 35e749a72f Added id.sed 1988-04-18 10:23:45 +00:00
ceriel 132548a987 Added a distr entry 1988-04-18 10:21:30 +00:00
ceriel d1c9c94493 generate message about parameter count 1988-04-15 17:29:02 +00:00
ceriel 9dbd7bdcf5 check for total size of locals and parameters 1988-04-15 17:25:01 +00:00
ceriel 2549099d3b use varargs where needed 1988-04-15 15:19:27 +00:00
ceriel d1fee09721 Use varargs where needed 1988-04-15 15:07:51 +00:00
ceriel 143fe678d4 use stty/gtty instead of ioctl 1988-04-15 15:03:32 +00:00
ceriel ecaea97a99 make to use varargs.h 1988-04-15 14:43:19 +00:00
ceriel 355177a22c improved sbrk 1988-04-14 10:45:42 +00:00
ceriel 1da83e161b made to fit on PDP-11 again, and some other minor mods 1988-04-13 18:37:45 +00:00
ceriel 39c5ab2997 better ORD, VAL, and CAP, and some other minor mods 1988-04-12 09:19:06 +00:00
ceriel 54bfaff625 Added a mechanism to test pointers as soon as possible 1988-04-11 18:32:47 +00:00
ceriel eddb43c08e catch possibly occurring trap with stores in the HP 1988-04-11 12:51:22 +00:00
ceriel d7030591f9 fixed problems in Storage module: caused integer overflow and bad pointers 1988-04-11 10:34:31 +00:00
ceriel 5250c1571f Added m2 1988-04-08 13:10:18 +00:00
ceriel 32d38f3eb8 two versions of the parameters file: small and large 1988-04-08 10:04:03 +00:00
ceriel b671136060 don't generate HOL's of zero size 1988-04-08 09:46:04 +00:00
ceriel ec612942a1 a minor mod 1988-04-07 15:35:48 +00:00
ceriel 0760483bee minor mod 1988-04-07 15:30:37 +00:00
ceriel cc4c9e85c8 Added id.sed 1988-04-07 15:02:12 +00:00
ceriel c8a728969d some minor changes and a fix in pointer arithmetic 1988-04-06 18:14:50 +00:00
ceriel f47d49b1c0 Added cap.c 1988-04-05 15:27:50 +00:00
ceriel 2be8437d73 identifiers may not contain two consecutive underscores, and a fix 1988-03-31 16:09:53 +00:00
ceriel 702a73b734 identifiers may not contain two consecutive underscores, and a fix 1988-03-31 16:02:20 +00:00
ceriel 021619910e changed PascalIO.Get behaviour and used Allocate instead of ALLOCATE 1988-03-28 18:15:50 +00:00
ceriel 36e934583a many minor mods: name changes 1988-03-23 17:55:57 +00:00
ceriel 7f9fd963fd many minor mods 1988-03-23 17:44:25 +00:00
ceriel e71df15045 made to fit on PDP-11 again 1988-03-22 17:54:01 +00:00
ceriel fba9192bbc new version, with 2/4 handling 1988-03-21 18:22:52 +00:00
ceriel cc64f88964 adapted to new naming scheme 1988-03-21 18:15:59 +00:00
ceriel dea657a673 too many changes: some cosmetic; some for 2/4; some for added options 1988-03-21 17:43:54 +00:00
ceriel 795a078d08 too many changes: some cosmetic; some for 2/4; some for added options 1988-03-21 17:22:26 +00:00
ceriel 0976dfa3b9 too many changes: some cosmetic; some for 2/4; some for added options 1988-03-21 17:06:20 +00:00
ceriel bb51d7b0e2 too many changes: some cosmetic; some for 2/4; some for added options 1988-03-21 16:47:51 +00:00
ceriel 759f4738ca too many changes: some cosmetic; some for 2/4; some for added options 1988-03-21 16:36:31 +00:00
ceriel 134869ad1a Added an array bound checking procedure 1988-03-18 18:08:20 +00:00
ceriel 33f80c6eef adapted for 2/4 code generation, and also fixed some bugs 1988-03-18 14:23:04 +00:00
ceriel 987683cf99 Added some comment 1988-03-16 09:20:36 +00:00
ceriel 750c838141 forgot to pop old handler 1988-03-15 17:37:19 +00:00
ceriel bda28533c5 fix in writing of prompt 1988-03-15 13:48:56 +00:00
ceriel 4b79636b8f fixed a problem with #ifdef/#else/#endif 1988-03-08 11:42:00 +00:00
ceriel 1a259744af The Get routine did not work right, fixed 1988-03-08 11:28:00 +00:00
ceriel ea21b16846 Added dependency 1988-03-08 10:44:09 +00:00
ceriel 78926a5a84 fix typo and parameters of overflow 1988-03-08 10:35:53 +00:00
ceriel 5cf3fc1017 some minor mods, mostly for better line number tracking 1988-03-08 10:18:58 +00:00
ceriel d949e3e8c5 some more fixes to fixes 1988-02-19 16:52:54 +00:00
ceriel dead814781 Of course: fixes to previous mods 1988-02-19 16:36:45 +00:00
ceriel 31ddd5ca12 mainly new comments 1988-02-19 15:54:01 +00:00
ceriel 96fc577b15 new version using the Streams module 1988-02-19 13:05:03 +00:00
ceriel 17921c4b5a Added the ArraySort module 1988-02-19 12:53:15 +00:00
ceriel 4e0c9a780a fixes and other mods 1988-02-17 17:21:51 +00:00
ceriel d04dce377a Changed use of word_align: it now only indicates the alignment on
which word-operations are allowed to take place
1988-02-17 14:29:57 +00:00
ceriel d034f5145c malloc now allows users to use sbrk too,
setjmp/longjmp now save/restore the signal mask on BSD 4.2 systems,
some minor mods in atof
1988-02-16 17:48:39 +00:00
ceriel 7bc8ed1270 fixed: returned wrong value 1988-02-16 17:48:28 +00:00
ceriel b54a58e93c made counting for register messages depending on a #define,
adapted makefile to make version with peephole optimizer library
1988-02-16 16:23:00 +00:00
ceriel 5d861a3399 made to work 1988-02-15 18:08:46 +00:00
ceriel d6c52e0fef make to work with new em_code interface 1988-02-15 18:04:27 +00:00
ceriel d7d501d43a made to fit on a PDP-11 again 1988-02-10 14:06:34 +00:00
ceriel 78de25b639 New baseline for distribution 1988-02-09 11:45:30 +00:00
ceriel 6217293e23 some fixes:
- always remove imports from definition modules
- minor improvement in error messages
1988-02-09 11:41:08 +00:00
ceriel f2dc30c912 modified to use Streams module 1988-02-03 14:34:40 +00:00
ceriel eb2ce1f30b This version fixes many problems in older versions 1988-02-02 16:27:54 +00:00
ceriel da3c00aeac compare pointers with CMP 1988-02-01 10:17:51 +00:00
ceriel 9d83605ccd Added the Streams module 1988-01-29 11:35:45 +00:00
ceriel a22ab5c7b7 better error message 1988-01-28 16:54:33 +00:00
ceriel 99611d287b conversion routinew now initialize whole array, Epilogue module changed slightly 1988-01-28 16:37:55 +00:00
ceriel 16e381031b improved filename and linenumber generation 1988-01-28 16:15:16 +00:00
ceriel 72e13f3a5a Yet another fix. ChkUnOper can also be called with a COERCION operator,
when NEW and DISPOSE are expanded
1988-01-28 14:05:34 +00:00
ceriel 7bb1897e98 minor fixes 1988-01-27 15:10:16 +00:00
ceriel e67e59e56a bug fix in LONGINT constants 1988-01-26 13:54:24 +00:00
ceriel e5b9c564af Added the Epilogue module 1988-01-25 16:14:48 +00:00
ceriel b19a178e2e fixed a bug with string-initializers 1988-01-25 16:14:01 +00:00
ceriel a7cdd16125 Allow the checking of definition modules 1988-01-22 12:04:27 +00:00
ceriel 9dfa2f6979 Added a test that at some point failed for the new CEMCOM 1988-01-19 11:45:43 +00:00
ceriel ad2d61154b fixed some minor problems 1988-01-15 16:55:01 +00:00
ceriel 31757c1935 output of id.c was wrong 1988-01-12 15:56:42 +00:00
ceriel 897b86cba2 prevent a voluntary crash and generate better code 1988-01-11 14:06:20 +00:00
ceriel d98394f0cf Added a test for casts 1987-12-04 12:53:18 +00:00
ceriel a8703841b2 changed typing of constants, to be more compatible with PCC
and future standard
1987-12-03 11:12:02 +00:00
ceriel a61d36ff49 fixes and squeezing 1987-12-02 10:41:38 +00:00
ceriel 3627b9a16c added use checking for types and constants, improved overflow checking 1987-11-27 14:24:46 +00:00
ceriel 3e51d4f62f version with better overflow checking 1987-11-27 14:13:11 +00:00
ceriel 896fec3fc5 version with better overflow checking 1987-11-26 14:15:24 +00:00
ceriel b2824fe796 check number of locals and parameters 1987-11-24 14:21:35 +00:00
ceriel ea2c86ef0c do not allow reals as case labels, check size of array's 1987-11-24 13:22:04 +00:00
ceriel 70403f62d9 fixed a bug: casts to short or char did not work right 1987-11-23 13:48:09 +00:00
ceriel c41f63a4c8 %[...] did not work 1987-11-20 12:57:51 +00:00
ceriel 619f6bb893 Fixed bug: subranges of subranges did not work right 1987-11-17 14:29:14 +00:00
ceriel 7bbfcac62b generate CSA for empty case statement, replaced an #ifdef that was on the wrong spot 1987-11-13 16:21:33 +00:00
ceriel 808e5d8c7d generate CSA for empty case statement 1987-11-13 16:19:51 +00:00
ceriel 603c65950c Fixed some problems:
files that use the em_code module must include the em_code.h file
improved checking of definitions after use
fixed problem with ranges in case statements
1987-11-11 13:10:08 +00:00
ceriel 4489526a11 fixed some minor problems 1987-11-09 16:11:04 +00:00
ceriel b6d6c4ee57 changed mechanism for for-loop checking, added some trap numbers 1987-11-09 11:36:45 +00:00
ceriel 785e174cbb Added mechanism for non-cross compiler (yet another way of squeezing it onto
a PDP-11
1987-11-09 11:29:48 +00:00
ceriel e1a3a1c136 made to fit on a PDP-11 1987-11-09 10:17:20 +00:00
ceriel cf0852c846 print initializer expression before call to code_declaration 1987-11-04 16:30:02 +00:00
ceriel 2837aa68a7 fixed some minor problems with copying conformant arrays,
and a LB that pointed below SP in transfer
1987-11-03 15:04:21 +00:00
ceriel 6e5f3632c6 fixed some minor problems 1987-11-03 12:44:09 +00:00
ceriel 867232a244 fixed some minor problems 1987-11-02 17:59:18 +00:00
ceriel 017871b025 deleted debugging writes 1987-11-02 11:25:13 +00:00
ceriel b24e6763c3 changed trap messages somewhat, corrected bug in InOut, undone changes
to confarray.c
1987-11-02 11:22:06 +00:00
ceriel bc6a9fbf66 Added handling of cardinal overflow 1987-10-30 18:32:14 +00:00
ceriel 5cd95d47b2 Now detects use before declaration, f.i. in
VAR k: REAL;
REAL : INTEGER;
1987-10-30 09:19:23 +00:00