ack.git
39 years agoAdded libmon to libraries to be translated.
em [Sat, 2 Feb 1985 18:06:37 +0000 (18:06 +0000)]
Added libmon to libraries to be translated.

39 years ago*** empty log message ***
em [Fri, 1 Feb 1985 22:12:31 +0000 (22:12 +0000)]
*** empty log message ***

39 years agoMany, many improvements made, ususually small ones.
garde [Fri, 1 Feb 1985 12:51:56 +0000 (12:51 +0000)]
Many, many improvements made, ususually small ones.
For example: many em-patterns have got alternative code-rules.

39 years agoNow using ../../proto/libg/Makefile.
keie [Fri, 1 Feb 1985 12:38:08 +0000 (12:38 +0000)]
Now using ../../proto/libg/Makefile.

39 years agoTo avoid conflict while compiling with acc itself the word
keie [Fri, 1 Feb 1985 12:32:46 +0000 (12:32 +0000)]
To avoid conflict while compiling with acc itself the word
size of the target machine is now defined as TEM_WSIZE.

39 years agoAdded an entry to create a doc.pr suitable for printing
keie [Thu, 31 Jan 1985 22:38:00 +0000 (22:38 +0000)]
Added an entry to create a doc.pr suitable for printing
on a straightforward line printer.

39 years agoAdded a reference to MES 11 in 11.1.4.4 at the non-local goto.
keie [Thu, 31 Jan 1985 15:15:20 +0000 (15:15 +0000)]
Added a reference to MES 11 in 11.1.4.4 at the non-local goto.

39 years ago1- Zero is deleted as a possible argument to LOI and STI.
keie [Thu, 31 Jan 1985 15:10:16 +0000 (15:10 +0000)]
1- Zero is deleted as a possible argument to LOI and STI.
   Allowing that was an oversight.
2- Message number 10 is reserved for global optimizer output.
3- Message number 11 must be used by GTO destinations.

39 years agoAdded a few sentences about the capability of ack to
keie [Thu, 31 Jan 1985 14:50:15 +0000 (14:50 +0000)]
Added a few sentences about the capability of ack to
preprocess Pascal programs and one restriction that imposes
on programs using it.

39 years agoZero is deleted as a possible argument to LOI and STI.
keie [Thu, 31 Jan 1985 14:03:56 +0000 (14:03 +0000)]
Zero is deleted as a possible argument to LOI and STI.
Allowing that was an oversight.

39 years agoZero is deleted as a possible argument to LOI and STI.
keie [Thu, 31 Jan 1985 13:58:09 +0000 (13:58 +0000)]
Zero is deleted as a possible argument to LOI and STI.
Allowing that was an oversight.

39 years ago1 - Changed incorrect execution line for callc/modc
keie [Thu, 31 Jan 1985 10:53:59 +0000 (10:53 +0000)]
1 - Changed incorrect execution line for callc/modc
2 - Added several sources to 'pr' entry, for printing.

39 years agoBugs fixed for the following patterns:
bal [Wed, 30 Jan 1985 16:34:14 +0000 (16:34 +0000)]
Bugs fixed for the following patterns:
lol loc 255 and 2  (byte order was wrong)
loc x beq , 0 < x < 128  (was 0 < x < 256)
loc x bne (idem).
These bugs were introduced in version 2.2.

39 years agoregister save costs changed: they are now linearly dependent on
bal [Wed, 30 Jan 1985 15:43:02 +0000 (15:43 +0000)]
register save costs changed: they are now linearly dependent on
the number of registers to be saved (for time).

39 years agoEntry for LOI changed from CLASS1 to CLASS12.
bal [Wed, 30 Jan 1985 14:49:03 +0000 (14:49 +0000)]
Entry for LOI changed from CLASS1 to CLASS12.

39 years agoCLASS12 added for the LOI instruction. A "LOI n", n < wordsize,
bal [Wed, 30 Jan 1985 14:47:49 +0000 (14:47 +0000)]
CLASS12 added for the LOI instruction. A "LOI n", n < wordsize,
loads wordsize bytes, not n bytes.

39 years agoAdded -DCPM to the flags.
ceriel [Wed, 30 Jan 1985 12:37:10 +0000 (12:37 +0000)]
Added -DCPM to the flags.

39 years agoDebugging procedure print_allocs now writes to stderr.
bal [Wed, 30 Jan 1985 10:52:33 +0000 (10:52 +0000)]
Debugging procedure print_allocs now writes to stderr.

39 years agobug fixed: assemble_allocs() did generate whole_procedure allocations.
bal [Wed, 30 Jan 1985 10:47:47 +0000 (10:47 +0000)]
bug fixed: assemble_allocs() did generate whole_procedure allocations.
These allocations were initialized with a very low profit. Consequently
account_regsave rejected these allocations.
Solution: repl_allocs() updates the al_profits field of the
whole_procedure allocation.

39 years agobug fixed: oldmap(lmap,llength) was sometimes called when no new map
bal [Mon, 28 Jan 1985 11:38:06 +0000 (11:38 +0000)]
bug fixed: oldmap(lmap,llength) was sometimes called when no new map
had to be allocated for the current (data-) unit.

39 years agoAlso remove all *.e and *.d files when cleaning up.
em [Fri, 25 Jan 1985 16:19:13 +0000 (16:19 +0000)]
Also remove all *.e and *.d files when cleaning up.

39 years agoStrings in rom are initialized with usage count 9999.
keie [Fri, 25 Jan 1985 14:40:51 +0000 (14:40 +0000)]
Strings in rom are initialized with usage count 9999.
decstr does not touch these at all.

39 years agoStrings in rom are initialized with usage count 9999 i.s.o. 1.
keie [Fri, 25 Jan 1985 14:34:50 +0000 (14:34 +0000)]
Strings in rom are initialized with usage count 9999 i.s.o. 1.
String with that usage count are not touched any way at all.

39 years agoNumber of address registers decreased from 5 to 4.
bal [Fri, 25 Jan 1985 13:24:12 +0000 (13:24 +0000)]
Number of address registers decreased from 5 to 4.

39 years agoAdded an entry called distr.
keie [Fri, 25 Jan 1985 11:28:55 +0000 (11:28 +0000)]
Added an entry called distr.
This make the formatted install.pr to be put on the distribution tape.

39 years agoThe program name is used to set the name
keie [Fri, 25 Jan 1985 11:04:18 +0000 (11:04 +0000)]
The program name is used to set the name
of the file were the contents of data statements are written.
The filename is extracted from the path and the suffix (if present)
is replaced by .d.

39 years agoThe parametrs passed to the call to opnchn when initializing are now
keie [Fri, 25 Jan 1985 09:57:04 +0000 (09:57 +0000)]
The parametrs passed to the call to opnchn when initializing are now
correct string descriptors.
Programs with data statements used to crash with TRAP TYPE 11.

39 years agoThe non-flag arguments are now passed by position.
keie [Fri, 25 Jan 1985 09:55:28 +0000 (09:55 +0000)]
The non-flag arguments are now passed by position.
The order is :  (bem) input output program-name.

39 years agoRemoved test18 because it is in essence a busy loop.
em [Thu, 24 Jan 1985 22:34:31 +0000 (22:34 +0000)]
Removed test18 because it is in essence a busy loop.

39 years agoAdded executable files to list of those to cleanup.
em [Thu, 24 Jan 1985 21:27:32 +0000 (21:27 +0000)]
Added executable files to list of those to cleanup.

39 years agoAdded entry "clean" for cleanup.
em [Thu, 24 Jan 1985 21:25:57 +0000 (21:25 +0000)]
Added entry "clean" for cleanup.

39 years ago*** empty log message ***
keie [Thu, 24 Jan 1985 17:39:54 +0000 (17:39 +0000)]
*** empty log message ***

39 years agoAdded ranlib commends.
keie [Thu, 24 Jan 1985 16:16:32 +0000 (16:16 +0000)]
Added ranlib commends.

39 years agoSome minor changes.
keie [Thu, 24 Jan 1985 15:34:23 +0000 (15:34 +0000)]
Some minor changes.

39 years agoChanged the line numbered 19 into a line numbered 190.
em [Thu, 24 Jan 1985 11:34:12 +0000 (11:34 +0000)]
Changed the line numbered 19 into a line numbered 190.
This seemed the correct thing to do.

39 years ago*** empty log message ***
em [Thu, 24 Jan 1985 11:27:36 +0000 (11:27 +0000)]
*** empty log message ***

39 years agobug fixed: the "incr" parameter of sbrk() is a 2-byte integer,
bal [Wed, 23 Jan 1985 16:31:51 +0000 (16:31 +0000)]
bug fixed: the "incr" parameter of sbrk() is a 2-byte integer,
not a 4-byte integer.

39 years agoparameter of fscanf changed from "%d" to "%hd" to read a short.
bal [Wed, 23 Jan 1985 16:28:58 +0000 (16:28 +0000)]
parameter of fscanf changed from "%d" to "%hd" to read a short.

39 years agocore allocation macros added.
bal [Wed, 23 Jan 1985 16:27:47 +0000 (16:27 +0000)]
core allocation macros added.

39 years agoovfl_harmful and arrbound_harmful turned into ints
bal [Wed, 23 Jan 1985 16:25:29 +0000 (16:25 +0000)]
ovfl_harmful and arrbound_harmful turned into ints

39 years agoInterface of tmplocal() changed: second parameter is a long now
bal [Wed, 23 Jan 1985 16:23:15 +0000 (16:23 +0000)]
Interface of tmplocal() changed: second parameter is a long now

39 years agointerface with tmplocal() changed: second parameter is a long now.
bal [Wed, 23 Jan 1985 16:18:33 +0000 (16:18 +0000)]
interface with tmplocal() changed: second parameter is a long now.

39 years agobug fixed in get_instrs(): instr should be an int rather than a Celem_t.
bal [Wed, 23 Jan 1985 16:16:49 +0000 (16:16 +0000)]
bug fixed in get_instrs(): instr should be an int rather than a Celem_t.

39 years agobug fixed in last_mnem(): test on nil-pointer.
bal [Wed, 23 Jan 1985 16:13:57 +0000 (16:13 +0000)]
bug fixed in last_mnem(): test on nil-pointer.
bug fixed in try_tail(): add line "if(l1==0||l2==0) return FALSE".

39 years agobug fixed in last_line() : assert(l!=0) should be assert(lines!=0).
bal [Wed, 23 Jan 1985 16:12:21 +0000 (16:12 +0000)]
bug fixed in last_line() : assert(l!=0) should be assert(lines!=0).

39 years agobug fixed in routine get_ca_lines(): test on nil-pointer.
bal [Wed, 23 Jan 1985 16:10:43 +0000 (16:10 +0000)]
bug fixed in routine get_ca_lines(): test on nil-pointer.

39 years agoinit_regcnt renamed initregcnt to avoid name conflict.
bal [Wed, 23 Jan 1985 16:07:09 +0000 (16:07 +0000)]
init_regcnt renamed initregcnt to avoid name conflict.
bug fixed in routine fits_in(): test on nil-pointer.
routine choose_location(): interface with tmplocal() changed, second
parameter now is a long, so a cast is added.

39 years agorules for itemtab.h and makeitems added.
bal [Wed, 23 Jan 1985 15:50:17 +0000 (15:50 +0000)]
rules for itemtab.h and makeitems added.

39 years agoclean_items renamed cleanitems to avoid name conflict.
bal [Wed, 23 Jan 1985 15:45:58 +0000 (15:45 +0000)]
clean_items renamed cleanitems to avoid name conflict.
clean_timeset renamed cleantimeset to avoid name conflict.
bugs fixed: calls to fscanf() with a pointer-to-short as argument
should provide a "%hd" instead of "%d".

39 years agosrc1 and src2 extended.
garde [Tue, 22 Jan 1985 19:55:11 +0000 (19:55 +0000)]
src1 and src2 extended.
Errors in 'p\ 1at loc cmi teq' and 'pat loc cmi tne' recovered.
Second stack-pattern for 'pat zlt' and 'pat zge' added.
Patterns for 'lil loc adi sil', 'lil inc sil', 'lil dec sil'
and 'sil lil' added.

39 years agoUser defined trap handling routine is called with calls instruction.
em [Tue, 22 Jan 1985 15:20:19 +0000 (15:20 +0000)]
User defined trap handling routine is called with calls instruction.
A message is printed if there is no routine at all.

39 years agoAdded `movl r3,ap' to restore the argument pointer before returning
em [Tue, 22 Jan 1985 13:10:35 +0000 (13:10 +0000)]
Added `movl r3,ap' to restore the argument pointer before returning
vi jmp (r0).

39 years agoNow using opder recommanded by 'lorder'.
em [Tue, 22 Jan 1985 02:17:13 +0000 (02:17 +0000)]
Now using opder recommanded by 'lorder'.

39 years agoPrintf does not return a truth value for failure.
keie [Mon, 21 Jan 1985 23:58:07 +0000 (23:58 +0000)]
Printf does not return a truth value for failure.
These -incorrect- tests were replaced by calls to ferror.

39 years agoAdded declaration of _newstr.
keie [Mon, 21 Jan 1985 23:57:44 +0000 (23:57 +0000)]
Added declaration of _newstr.

39 years agoAdded correct declaration of salloc, thereby preventing incorrect conversions.
keie [Mon, 21 Jan 1985 23:56:10 +0000 (23:56 +0000)]
Added correct declaration of salloc, thereby preventing incorrect conversions.
Removed now unnecessary casts from salloc to (char *).
Added a cast to (char *) for the argument of sfree in the second call.

39 years ago1 - Changed argument from int to unsigned.
keie [Mon, 21 Jan 1985 23:54:46 +0000 (23:54 +0000)]
1 - Changed argument from int to unsigned.
2 - The test for a failed malloc is changed from comparison to -1
    to comparison to 0.

39 years agoTests for EOF returned by stdio routines need the full int width.
keie [Mon, 21 Jan 1985 23:53:41 +0000 (23:53 +0000)]
Tests for EOF returned by stdio routines need the full int width.

39 years agoRemoved casts made superfluous by adding newstr to string.h
keie [Mon, 21 Jan 1985 23:53:01 +0000 (23:53 +0000)]
Removed casts made superfluous by adding newstr to string.h

39 years agoTest for EOF returned by stdio routines have to use the full int width.
keie [Mon, 21 Jan 1985 23:52:19 +0000 (23:52 +0000)]
Test for EOF returned by stdio routines have to use the full int width.

39 years agoRemoved cast made superfluous by added newstr to string.h
keie [Mon, 21 Jan 1985 23:51:33 +0000 (23:51 +0000)]
Removed cast made superfluous by added newstr to string.h

39 years agoAdded test for outcome of request for more core.
keie [Mon, 21 Jan 1985 23:48:06 +0000 (23:48 +0000)]
Added test for outcome of request for more core.
If no more core is available a fatal error message is produced.

39 years agoChanged #define's of newlbss of cst_fmt.
em [Mon, 21 Jan 1985 16:40:02 +0000 (16:40 +0000)]
Changed #define's of newlbss of cst_fmt.

39 years agoBug fix: redefined a Local local causing an INTERNAL ERROR from as.
em [Mon, 21 Jan 1985 15:49:22 +0000 (15:49 +0000)]
Bug fix: redefined a Local local causing an INTERNAL ERROR from as.

39 years agoDue to an 8 character identifier length limitation the identifier
keie [Mon, 21 Jan 1985 14:52:34 +0000 (14:52 +0000)]
Due to an 8 character identifier length limitation the identifier
"strcompare" is changed into "strcomp".

39 years agoDue to an 8 character identifiers limitation calls in EM
keie [Mon, 21 Jan 1985 14:51:29 +0000 (14:51 +0000)]
Due to an 8 character identifiers limitation calls in EM
the identifier "randomize" was changed into "randomi".

39 years agoDue to an 8 character identifiers limitation on EM calls to
keie [Mon, 21 Jan 1985 14:50:12 +0000 (14:50 +0000)]
Due to an 8 character identifiers limitation on EM calls to
"setchannel" were changed into "setchan" and the identifier
"seektable" is replaced by "seektab".

39 years agoChanged calls to "setrandom" into calls to "setrand" and
keie [Mon, 21 Jan 1985 14:48:16 +0000 (14:48 +0000)]
Changed calls to "setrandom" into calls to "setrand" and
calls to "randomize" inro calls to "randomi" to avoid
problems with routines compiled by C.

39 years agoAdded a few /*NOSTRICT*/ comments to indicate awareness of lint complaints.
keie [Mon, 21 Jan 1985 14:30:55 +0000 (14:30 +0000)]
Added a few /*NOSTRICT*/ comments to indicate awareness of lint complaints.

39 years ago1 - Changed the defintion of a local 's' into 'Sym' to avoid naming conflict.
keie [Mon, 21 Jan 1985 14:26:29 +0000 (14:26 +0000)]
1 - Changed the defintion of a local 's' into 'Sym' to avoid naming conflict.
2 - Added .integer, .Sptr and .cptr at appropiate places to uses of yylval.
3 - Removed unnecessary casts.
4 - Added a few /*NOSTRICT*/ comments to indicate awareness of lint
    complaints.

39 years ago1 - Added comment to indicate awareness of lint complaints.
keie [Mon, 21 Jan 1985 14:23:49 +0000 (14:23 +0000)]
1 - Added comment to indicate awareness of lint complaints.
2 - Added/Removed some casts used with core allocation/deallocation.

39 years agoChanged the argument of salloc from an int into an unsigned.
keie [Mon, 21 Jan 1985 14:22:07 +0000 (14:22 +0000)]
Changed the argument of salloc from an int into an unsigned.
Just to shut up lint.

39 years agoAdded a declaration of gosublabel.
keie [Mon, 21 Jan 1985 14:21:52 +0000 (14:21 +0000)]
Added a declaration of gosublabel.

39 years agoAdded a few comments to indicate awareness of lint complaints.
keie [Mon, 21 Jan 1985 14:20:11 +0000 (14:20 +0000)]
Added a few comments to indicate awareness of lint complaints.

39 years ago1 - Removed definition of POINTERSIZE.
keie [Mon, 21 Jan 1985 14:18:47 +0000 (14:18 +0000)]
1 - Removed definition of POINTERSIZE.
2 - Defined void as int, some compilers don't know void.
3 - Added declarations of the routines proclabel, salloc, strcpy, strcat, malloc.

39 years agocase 8 and case 6 deleted in switch of function 'prolog'
garde [Mon, 21 Jan 1985 14:17:11 +0000 (14:17 +0000)]
case 8 and case 6 deleted in switch of function 'prolog'

39 years agoNow using a union for YYSTYPE and typed (non-)terminals.
keie [Mon, 21 Jan 1985 14:15:06 +0000 (14:15 +0000)]
Now using a union for YYSTYPE and typed (non-)terminals.
Changed values $n(intvalue) to ival in definition of filelist.
Changed one asp,$n(midparms) into several asp,...SIZE in the definition
that uses MIDSYM.

39 years ago1 added lint entry.
keie [Mon, 21 Jan 1985 14:14:22 +0000 (14:14 +0000)]
1 added lint entry.
2 changed calls to cc into $(CC)

39 years agoTo have a file preprocessed, it must start with a # in column o1.
em [Mon, 21 Jan 1985 12:56:09 +0000 (12:56 +0000)]
To have a file preprocessed, it must start with a # in column o1.
The RCSid is replaced to accomplish this.

39 years agoNow using correct RCS identification
em [Mon, 21 Jan 1985 12:47:04 +0000 (12:47 +0000)]
Now using correct RCS identification

39 years agoRenaming due to 8 character C compiler limit.
em [Mon, 21 Jan 1985 12:37:26 +0000 (12:37 +0000)]
Renaming due to 8 character C compiler limit.

39 years agoUsed a correct definition of malloc.
em [Mon, 21 Jan 1985 12:35:53 +0000 (12:35 +0000)]
Used a correct definition of malloc.

39 years agoReplaced RCSid so that file starts with # in column 0 so it gets preprocessed.
em [Mon, 21 Jan 1985 12:28:59 +0000 (12:28 +0000)]
Replaced RCSid so that file starts with # in column 0 so it gets preprocessed.

39 years agoCorrected type; forgot closing ".
em [Mon, 21 Jan 1985 12:14:59 +0000 (12:14 +0000)]
Corrected type; forgot closing ".

39 years agoRemoved #define IDFIRST because fmt_id() replaces it.
em [Mon, 21 Jan 1985 12:09:44 +0000 (12:09 +0000)]
Removed #define IDFIRST because fmt_id() replaces it.

39 years agoInitial revision
em [Fri, 18 Jan 1985 16:06:21 +0000 (16:06 +0000)]
Initial revision

39 years agoRoutines are now called with calls instead of jsb. We use ap as argument
em [Fri, 18 Jan 1985 15:39:07 +0000 (15:39 +0000)]
Routines are now called with calls instead of jsb. We use ap as argument
pointer register. EM_BSIZE is required to be a constant.

39 years agoChanged label generators and added fmt_id().
em [Fri, 18 Jan 1985 15:36:51 +0000 (15:36 +0000)]
Changed label generators and added fmt_id().

39 years agoRoutines are called with calls instead of jsb. EM_BSIZE is required to
em [Fri, 18 Jan 1985 15:33:44 +0000 (15:33 +0000)]
Routines are called with calls instead of jsb. EM_BSIZE is required to
be a constant.

39 years agoInitial revision
duk [Fri, 18 Jan 1985 14:30:03 +0000 (14:30 +0000)]
Initial revision

39 years agoInitial revision
bal [Fri, 18 Jan 1985 09:59:09 +0000 (09:59 +0000)]
Initial revision

39 years agoInitial revision
garde [Thu, 17 Jan 1985 14:31:34 +0000 (14:31 +0000)]
Initial revision

39 years agoInitial revision
duk [Thu, 17 Jan 1985 14:20:52 +0000 (14:20 +0000)]
Initial revision

39 years agoChecking in Martin's changes.
em [Thu, 17 Jan 1985 14:10:27 +0000 (14:10 +0000)]
Checking in Martin's changes.

39 years agoAdded some documentation for the interface between C and Pascal.
keie [Thu, 17 Jan 1985 13:22:49 +0000 (13:22 +0000)]
Added some documentation for the interface between C and Pascal.
This was necessary because the format of Pascal and C procedure
pointers differ from now on.

39 years agoAdded the test program for the C<=>Pascal interface.
keie [Thu, 17 Jan 1985 12:43:51 +0000 (12:43 +0000)]
Added the test program for the C<=>Pascal interface.

39 years ago*** empty log message ***
keie [Thu, 17 Jan 1985 12:43:04 +0000 (12:43 +0000)]
*** empty log message ***

39 years agoThe EM runtime routines are reentrant now, so the remark about
bal [Thu, 17 Jan 1985 10:39:33 +0000 (10:39 +0000)]
The EM runtime routines are reentrant now, so the remark about
reentrancy is removed from this file.

39 years agoBug fixed: a0 is changed by call to _brk, so it should be saved & restored.
bal [Thu, 17 Jan 1985 10:33:23 +0000 (10:33 +0000)]
Bug fixed: a0 is changed by call to _brk, so it should be saved & restored.

39 years agoAdded RCS id.
keie [Fri, 11 Jan 1985 17:03:53 +0000 (17:03 +0000)]
Added RCS id.