ack.git
9 years agoRename branch. unlabeled-2.6.1
David Given [Thu, 18 Jun 2015 21:39:29 +0000 (23:39 +0200)]
Rename branch.

--HG--
branch : unlabeled-2.6.1-branch

39 years agoAdded the possibility to have a varying EM_BSIZE
keie [Thu, 24 Jan 1985 16:51:26 +0000 (16:51 +0000)]
Added the possibility to have a varying EM_BSIZE
as a tempoarary measure, to be deleted as soon as the m68k2
back-end is tested again.

--HG--
branch : unlabeled-2.6.1

39 years agofixup commit for branch 'unlabeled-2.6.1'
cvs2hg [Tue, 23 Oct 1984 15:04:25 +0000 (15:04 +0000)]
fixup commit for branch 'unlabeled-2.6.1'

--HG--
branch : unlabeled-2.6.1

39 years agochanged references to EM_?SIZE to TEM_?SIZE
sater [Tue, 23 Oct 1984 15:04:24 +0000 (15:04 +0000)]
changed references to EM_?SIZE to TEM_?SIZE

39 years agochanged EM_WSIZE to TEM_WSIZE
sater [Tue, 23 Oct 1984 15:02:03 +0000 (15:02 +0000)]
changed EM_WSIZE to TEM_WSIZE

39 years agoadded -h and -c flags, to change names of tables.h and tables.c respectively
sater [Tue, 23 Oct 1984 13:39:15 +0000 (13:39 +0000)]
added -h and -c flags, to change names of tables.h and tables.c respectively
now also takes an argument instead of stdin.
EM_BSIZE is now compulsory again.
Constants EM_?SIZE are passed on to cg with a T prepended (T for target)

39 years agoChanged to use -h flag to cgg and better way of preserving old tables.h
sater [Tue, 23 Oct 1984 13:29:41 +0000 (13:29 +0000)]
Changed to use -h flag to cgg and better way of preserving old tables.h
if not changed. Nice huh, Andy?

39 years agoadded rcsid(again). Who took that away?
sater [Tue, 16 Oct 1984 13:45:16 +0000 (13:45 +0000)]
added rcsid(again). Who took that away?

39 years agoadded code to generate code for ACK assembler.
sater [Tue, 16 Oct 1984 13:31:44 +0000 (13:31 +0000)]
added code to generate code for ACK assembler.
Works if ACK_ASS is defined.

39 years agoHad forgotten to initialise the line number on which a nonterminal
ceriel [Fri, 12 Oct 1984 14:19:34 +0000 (14:19 +0000)]
Had forgotten to initialise the line number on which a nonterminal
symbol occurred first.

39 years agoNo changes
ceriel [Thu, 11 Oct 1984 21:35:58 +0000 (21:35 +0000)]
No changes

39 years agoThe former version gave a fatal error message at the first undefined
ceriel [Thu, 11 Oct 1984 10:35:01 +0000 (10:35 +0000)]
The former version gave a fatal error message at the first undefined
nonterminal. The new version checks all nonterminals

39 years agoThe routine findpath did not work. It used the same static buffer for
ceriel [Tue, 9 Oct 1984 11:43:19 +0000 (11:43 +0000)]
The routine findpath did not work. It used the same static buffer for
several calls. Now it uses alloc.

39 years agoInitial revision
em [Tue, 9 Oct 1984 10:36:29 +0000 (10:36 +0000)]
Initial revision

39 years agoadded "#ifdef NORCSID"
ceriel [Tue, 9 Oct 1984 10:16:33 +0000 (10:16 +0000)]
added "#ifdef NORCSID"

39 years agoAdded some comments and removed some Lint complaints
ceriel [Tue, 9 Oct 1984 10:13:46 +0000 (10:13 +0000)]
Added some comments and removed some Lint complaints

39 years agoInitial revision
ceriel [Tue, 9 Oct 1984 09:47:14 +0000 (09:47 +0000)]
Initial revision

39 years agoThe routine LLmessage did not insert tokens properly.
ceriel [Tue, 9 Oct 1984 09:33:37 +0000 (09:33 +0000)]
The routine LLmessage did not insert tokens properly.
This is corrected now.

39 years agoChanged RCSid
ceriel [Mon, 8 Oct 1984 17:11:03 +0000 (17:11 +0000)]
Changed RCSid

39 years agoAdded RCSid.
ceriel [Mon, 8 Oct 1984 16:21:03 +0000 (16:21 +0000)]
Added RCSid.

39 years agoAdapted the libpath routine to use EM_DIR from ../../../h/em_path.h
ceriel [Mon, 8 Oct 1984 15:58:23 +0000 (15:58 +0000)]
Adapted the libpath routine to use EM_DIR from ../../../h/em_path.h

39 years agoAdded entry for LLgen.
ceriel [Mon, 8 Oct 1984 15:20:54 +0000 (15:20 +0000)]
Added entry for LLgen.

39 years agoInitial revision
ceriel [Mon, 8 Oct 1984 15:19:18 +0000 (15:19 +0000)]
Initial revision

39 years agoAdded entry for LLgen documentation.
ceriel [Mon, 8 Oct 1984 15:00:23 +0000 (15:00 +0000)]
Added entry for LLgen documentation.

39 years agoInitial revision
ceriel [Mon, 8 Oct 1984 14:51:38 +0000 (14:51 +0000)]
Initial revision

39 years agoInitial revision
ceriel [Mon, 8 Oct 1984 14:24:19 +0000 (14:24 +0000)]
Initial revision

39 years agoInitial revision
ceriel [Mon, 8 Oct 1984 14:14:53 +0000 (14:14 +0000)]
Initial revision

39 years agoInitial revision
keie [Mon, 8 Oct 1984 14:11:42 +0000 (14:11 +0000)]
Initial revision

39 years agoNew installation procedure:
keie [Mon, 8 Oct 1984 14:09:28 +0000 (14:09 +0000)]
New installation procedure:
1 - New place for binaries and libraries in the ACK tree.
2 - The ranlib action is moved to ../../install which tries it at
    every action.

39 years agobug fixed: generate "add.l #65536,a1" rather than "lea 65536(a1),a1".
bal [Mon, 8 Oct 1984 12:45:38 +0000 (12:45 +0000)]
bug fixed: generate "add.l #65536,a1" rather than "lea 65536(a1),a1".
The latter form is only generated for constants that fit in a word.

39 years agoAltered the test path lib/n_ack into the normal path ACK_PATH.
keie [Fri, 5 Oct 1984 15:07:47 +0000 (15:07 +0000)]
Altered the test path lib/n_ack into the normal path ACK_PATH.

39 years agoAdded a priority associated with each phase. Paths with the highest
keie [Fri, 5 Oct 1984 13:34:38 +0000 (13:34 +0000)]
Added a priority associated with each phase. Paths with the highest
total priority have preference.

39 years ago1 - Added some debugging for linker flags.
keie [Fri, 5 Oct 1984 13:31:40 +0000 (13:31 +0000)]
1 - Added some debugging for linker flags.
2 - Setting of NEEDS and RTS is moved to main.c.
3 - Added recognition of -Rphase:[-]number for dynamic priority setting.

39 years ago1 - Most flags used by ack itself are now also passed to the phases
keie [Fri, 5 Oct 1984 13:28:56 +0000 (13:28 +0000)]
1 - Most flags used by ack itself are now also passed to the phases
    for recognition with mapflag.
2 - A few bugs are removed in connection with argument passing to the
    linker (unrecognized flags and libraries).
3 - The setting of RTS, HEAD and TAIL is done directly after the
    path determination for each file.

39 years agoRemoved the defines needed by util/ack/em_pc.c.
keie [Thu, 4 Oct 1984 11:11:30 +0000 (11:11 +0000)]
Removed the defines needed by util/ack/em_pc.c.
These defaults are now provided in lib/ack/fe.

39 years ago1 - Added RCS identification.
keie [Thu, 4 Oct 1984 11:08:42 +0000 (11:08 +0000)]
1 - Added RCS identification.
2 - Removed the default for compiler and error file pathname.
    These are now always supplied by the callee.

39 years agoCorrected a small bug in the pc mapflags.
keie [Thu, 4 Oct 1984 10:54:11 +0000 (10:54 +0000)]
Corrected a small bug in the pc mapflags.

39 years ago1- Added RCS identification.
keie [Thu, 4 Oct 1984 10:47:03 +0000 (10:47 +0000)]
1- Added RCS identification.
2- The pathnames of the Pascal compiler and Compile time-error file
   are now always explicitly passed to em_pc.

39 years agoAltered to reflect the changes in em_path.h.
keie [Thu, 4 Oct 1984 10:42:13 +0000 (10:42 +0000)]
Altered to reflect the changes in em_path.h.
Now dynamically concatenes EM_DIR and error path.

39 years agoAltered the description of EM_HOME in em_path.h to that of
keie [Tue, 2 Oct 1984 16:24:59 +0000 (16:24 +0000)]
Altered the description of EM_HOME in em_path.h to that of
EM_DIR.

39 years agoadded missing cast at call to regsave, in ms_gto case
sater [Tue, 2 Oct 1984 11:17:57 +0000 (11:17 +0000)]
added missing cast at call to regsave, in ms_gto case

39 years agochanged definition of myalloc to extern
sater [Tue, 2 Oct 1984 10:31:06 +0000 (10:31 +0000)]
changed definition of myalloc to extern

39 years agoadded external definition for myalloc()
sater [Tue, 2 Oct 1984 10:30:44 +0000 (10:30 +0000)]
added external definition for myalloc()

39 years agoBug removed: the trailing zero at the end of a growstring was not
keie [Mon, 1 Oct 1984 17:42:56 +0000 (17:42 +0000)]
Bug removed: the trailing zero at the end of a growstring was not
explicitly written in doassign(trans.c).
Only luck kept the program together.

39 years agoNill pointers are not allowed in CSA descriptors any more.
keie [Mon, 1 Oct 1984 16:05:17 +0000 (16:05 +0000)]
Nill pointers are not allowed in CSA descriptors any more.

39 years agoNull pointer are not allowed any more for in-bound indeces in the CSA
keie [Mon, 1 Oct 1984 14:54:09 +0000 (14:54 +0000)]
Null pointer are not allowed any more for in-bound indeces in the CSA
table.

40 years agoInitial revision
keie [Tue, 25 Sep 1984 16:33:15 +0000 (16:33 +0000)]
Initial revision

40 years agoAdded National semiconductor assembler.
keie [Tue, 25 Sep 1984 16:32:45 +0000 (16:32 +0000)]
Added National semiconductor assembler.

40 years ago1 - A few minor syntactic changes.
em [Tue, 25 Sep 1984 11:06:29 +0000 (11:06 +0000)]
1 - A few minor syntactic changes.
2 - Altered the description of strings as initializers. (sequence of U1's).

40 years agoMade the buffer long enough for the machine state on most machines.
keie [Mon, 24 Sep 1984 15:18:20 +0000 (15:18 +0000)]
Made the buffer long enough for the machine state on most machines.

40 years agoInitial revision
keie [Mon, 24 Sep 1984 15:18:07 +0000 (15:18 +0000)]
Initial revision

40 years agoInitial revision
keie [Mon, 24 Sep 1984 14:10:23 +0000 (14:10 +0000)]
Initial revision

40 years agoCompile-time option GLOBAL_OPT defined. If set, the resulting
em [Fri, 14 Sep 1984 10:25:07 +0000 (10:25 +0000)]
Compile-time option GLOBAL_OPT defined. If set, the resulting
peephole optimizer will be suitable for optimizing the output of
the global optimizer. In particular, it doesn't change the register
messages.

40 years ago1 - The prop keyword with is flags is now obsolete. Its function is
keie [Thu, 13 Sep 1984 14:40:09 +0000 (14:40 +0000)]
1 - The prop keyword with is flags is now obsolete. Its function is
    taken over by several other keywords: stdin, stdout, prep, optimizer,
    combiner and linker.
2 - The search order is changed. First {EM}/lib/{M}/descr, then
    {EM}/lib/ack/{M}, finally {M}.

40 years agoThe t_do bits are not set by this module. The t_next entry is used
keie [Thu, 13 Sep 1984 14:35:02 +0000 (14:35 +0000)]
The t_do bits are not set by this module. The t_next entry is used
to see whether the scan for this phase is already done.
t_do is now set in add_inputs(files.c).

40 years ago1 - The t_do flags is now set by add_inputs(files.c).
keie [Thu, 13 Sep 1984 11:07:46 +0000 (11:07 +0000)]
1 - The t_do flags is now set by add_inputs(files.c).
2 - Recognize the fact that it is possible to start a combiner without
    input files.
3 - Removed -d flag. Overflow for -v (>2) now ends up in debug.
    -v may be followed by a number indicating the increment.

40 years ago1 - The outfile entry is only used when the output file must not be thrown
keie [Thu, 13 Sep 1984 11:04:00 +0000 (11:04 +0000)]
1 - The outfile entry is only used when the output file must not be thrown
    away.
2 - If a combiner has no named input file (only libs+flags) then issue
    a warning message and make up a name.

40 years agopem did not generate a register message for var-parameters of
bal [Wed, 12 Sep 1984 13:21:43 +0000 (13:21 +0000)]
pem did not generate a register message for var-parameters of
array- or record type. The routine "treewalk" is modified.
It generates a register message for every var-parameter, even
if it has its noreg-flag set.

40 years agounlk a6 added to restr().
bal [Tue, 11 Sep 1984 15:44:14 +0000 (15:44 +0000)]
unlk a6 added to restr().

40 years agoAdded ego, basic and callname conventions.
keie [Mon, 10 Sep 1984 17:34:04 +0000 (17:34 +0000)]
Added ego, basic and callname conventions.

40 years agoNo comment.
keie [Mon, 10 Sep 1984 16:51:02 +0000 (16:51 +0000)]
No comment.

40 years agoCombiners (ego, linkers) now use a list of path's(ack.h) to indicate
keie [Mon, 10 Sep 1984 16:48:57 +0000 (16:48 +0000)]
Combiners (ego, linkers) now use a list of path's(ack.h) to indicate
their input files.
Unmatched flags are now sent to the linker.

40 years ago1 - A transformation is succesfull when
keie [Mon, 10 Sep 1984 16:46:13 +0000 (16:46 +0000)]
1 - A transformation is succesfull when
    a - a stopsuffix is indicated and met,
    b - the last transformation is included in the transformation path.
2 - Maintains a 'cash' of best paths for all transformation to be executed.

40 years agoThe input file names of the linker are to be found in a different place.
keie [Mon, 10 Sep 1984 16:45:12 +0000 (16:45 +0000)]
The input file names of the linker are to be found in a different place.

40 years ago1 - added keywords callname and outfile. See manual.
keie [Mon, 10 Sep 1984 16:42:55 +0000 (16:42 +0000)]
1 - added keywords callname and outfile. See manual.
2 - multiple combiners are allowed now.
3 - A different search mechanism is used for finding descriptor files.

40 years ago1 - callname recognition is moved to rmach.c.
keie [Mon, 10 Sep 1984 16:37:11 +0000 (16:37 +0000)]
1 - callname recognition is moved to rmach.c.
2 - The overall scheme is altered.
first, all input files are processed until a combining phase is met.
then, all the combining phases are executed, the resulting files
are again processed until a combiner (or final) phase is met.
3 - The EM_DIR shell variable can be used to set ack's idea of the EM
    home directory.

40 years ago1 - The names of temporary files are now Ack'hex''unique'.'suffix'.
keie [Mon, 10 Sep 1984 16:33:03 +0000 (16:33 +0000)]
1 - The names of temporary files are now Ack'hex''unique'.'suffix'.
    'hex' is the pid of the current invocation of ack in hex.
    'unique' is a tail unique to this invocation.
2 - The outfile field is used to indicate default naming, can be ovrrriden
    by the -o flag.
3 - Added handling for phases with multiple inputs (ego, linker).

40 years agoThe role of the combiner is -partially- assumed by the linker.
keie [Mon, 10 Sep 1984 16:30:47 +0000 (16:30 +0000)]
The role of the combiner is -partially- assumed by the linker.
Linker arguments are now part of the transformation structure.
Temp file nameing is changed.

40 years agoNaming of the tempname is changed (see files.c).
keie [Mon, 10 Sep 1984 16:29:37 +0000 (16:29 +0000)]
Naming of the tempname is changed (see files.c).

40 years agoInitial revision
keie [Mon, 3 Sep 1984 13:49:40 +0000 (13:49 +0000)]
Initial revision

40 years agoVariable nregvars had a name clash with the array nregvar[] in the
sater [Thu, 23 Aug 1984 17:07:53 +0000 (17:07 +0000)]
Variable nregvars had a name clash with the array nregvar[] in the
file tables.c. That was different in the 8'th character (!"#$%&'()_).
These variables should actually be static.

40 years agoWe do not use the missing " trick anymore.
keie [Thu, 23 Aug 1984 13:33:11 +0000 (13:33 +0000)]
We do not use the missing " trick anymore.
The root directory of the EM tree is in the name EM_DIR, the
root directory for tempfiles is in TMP_DIR.
All other path's are relative to EM_DIR.

40 years agoThe ACK tree on the vax has as default machine 'vax2'.
keie [Thu, 23 Aug 1984 13:27:14 +0000 (13:27 +0000)]
The ACK tree on the vax has as default machine 'vax2'.

40 years agoThe missing trailing " trick is now also used for TMP_DIR.
keie [Thu, 23 Aug 1984 13:26:44 +0000 (13:26 +0000)]
The missing trailing " trick is now also used for TMP_DIR.

40 years agoThe ms_gto is added. This is a trick used to indicate procedures
keie [Thu, 23 Aug 1984 13:25:44 +0000 (13:25 +0000)]
The ms_gto is added. This is a trick used to indicate procedures
jumped to with gto.

40 years ago*** empty log message ***
keie [Thu, 23 Aug 1984 13:20:59 +0000 (13:20 +0000)]
*** empty log message ***

40 years agoInitial revision
keie [Thu, 23 Aug 1984 13:18:14 +0000 (13:18 +0000)]
Initial revision

40 years agoInitial revision
keie [Thu, 23 Aug 1984 13:00:32 +0000 (13:00 +0000)]
Initial revision

40 years agoincreased MAXNODES in small memory mode
sater [Thu, 23 Aug 1984 12:25:24 +0000 (12:25 +0000)]
increased MAXNODES in small memory mode

40 years agoIncreased the amount of information passed through error routines
sater [Fri, 17 Aug 1984 15:35:28 +0000 (15:35 +0000)]
Increased the amount of information passed through error routines
to printf. The routine badassert, running on a 2/4 machine lost it's
last argument on the way.
Anyone know of a better way to solve this problem?

40 years agoAdded comment.
keie [Fri, 17 Aug 1984 14:57:31 +0000 (14:57 +0000)]
Added comment.

40 years agoAdded RCS identification.
keie [Fri, 17 Aug 1984 14:44:24 +0000 (14:44 +0000)]
Added RCS identification.

40 years agoRevised to include rcsid of pattern file in binary opt
sater [Thu, 16 Aug 1984 16:08:39 +0000 (16:08 +0000)]
Revised to include rcsid of pattern file in binary opt

40 years agoenlarged string table in big memory case
sater [Thu, 16 Aug 1984 13:34:59 +0000 (13:34 +0000)]
enlarged string table in big memory case

40 years agoadded patterns to prevent stacking in *p++ cases
sater [Wed, 15 Aug 1984 16:05:54 +0000 (16:05 +0000)]
added patterns to prevent stacking in *p++ cases

40 years agoadded patterns to remove some more dup's
sater [Wed, 15 Aug 1984 16:04:19 +0000 (16:04 +0000)]
added patterns to remove some more dup's

40 years agoadded patterns for inc/dec/adp of local and external offsetted
sater [Wed, 15 Aug 1984 14:31:54 +0000 (14:31 +0000)]
added patterns for inc/dec/adp of local and external offsetted
This makes the getc() macro from C very efficient, among others

40 years agoadded patterns to remove as many dup's as possible.
sater [Wed, 15 Aug 1984 14:23:42 +0000 (14:23 +0000)]
added patterns to remove as many dup's as possible.

40 years agoadded definition of malloc().
sater [Wed, 8 Aug 1984 10:54:04 +0000 (10:54 +0000)]
added definition of malloc().
Program crashed on 2/4 machines

40 years agoreworked patterns for autoincrement stores, now that peephole optimizer
sater [Tue, 7 Aug 1984 10:22:49 +0000 (10:22 +0000)]
reworked patterns for autoincrement stores, now that peephole optimizer
rearranged it.

40 years agoadded patterns for *p++ local and external p
sater [Fri, 3 Aug 1984 16:37:15 +0000 (16:37 +0000)]
added patterns for *p++ local and external p
added pattern to remove some badly placed dups

40 years agoadded setcc calls to some incrementing ops
sater [Fri, 3 Aug 1984 16:33:40 +0000 (16:33 +0000)]
added setcc calls to some incrementing ops
added patterns for indirect local and external increments
added patterns for loe ine and such

40 years agoremoved some superfluous patterns.
sater [Fri, 3 Aug 1984 13:16:59 +0000 (13:16 +0000)]
removed some superfluous patterns.
Were special cases not needed with the general case.

40 years agoA move from a nonreg to a reg did not have the effect that all
sater [Thu, 2 Aug 1984 16:31:25 +0000 (16:31 +0000)]
A move from a nonreg to a reg did not have the effect that all
registers clashing with the destination were erased. Erase added.

40 years agoThe name "unix" is now predefined for preprocessor usage.
keie [Thu, 2 Aug 1984 14:13:04 +0000 (14:13 +0000)]
The name "unix" is now predefined for preprocessor usage.

40 years agoWhen building the parameter list for a pf-call, the line number
sater [Tue, 31 Jul 1984 09:39:35 +0000 (09:39 +0000)]
When building the parameter list for a pf-call, the line number
for the exchanges war remembered at the wrong time.
This caused:
foo(3,'string')
to cause an external identifier for the string. Fixed.

40 years agoString initializer handling is changed.
keie [Mon, 30 Jul 1984 14:42:33 +0000 (14:42 +0000)]
String initializer handling is changed.
Strings are now considered to be sequences of xU1's.
No alignment is done before or after the string other than the
alignment done for names and segment type switches.

40 years agobug fixed: added "fprintf(codefile,"\b"rts\n");" to restr()
bal [Mon, 30 Jul 1984 12:47:54 +0000 (12:47 +0000)]
bug fixed: added "fprintf(codefile,"\b"rts\n");" to restr()

40 years agobugs fixed (syntax errors, patterns moved to front,
bal [Mon, 30 Jul 1984 11:16:41 +0000 (11:16 +0000)]
bugs fixed (syntax errors, patterns moved to front,
"ldl ldl adp sdl sti" requires DATAREG instead of ANY1 on
fakestack)

40 years agopatterns added to generate autoincrement and to generate
bal [Fri, 27 Jul 1984 16:53:19 +0000 (16:53 +0000)]
patterns added to generate autoincrement and to generate
a "move X,d0" instead of a "move X,-(sp)" before storing into X