ack/mach/m68020/ncg
George Koehler 5301cceee3 Declare machine-dependent functions in mach/proto/ncg
This breaks all machines because the declared return type void
disagrees with the implicit return type int (when I compile mach.c
with clang).  Unbreak i386, i80, i86, m68020, powerpc, vc4 by adding
the return types to mach.c.  We don't build any other machines; they
are broken since commit a46ee91 (May 19, 2013) declared void prolog()
and commit fd91851 (Nov 10, 2016) declared void mes(), with both
declarations in mach/proto/ncg/fillem.c.

Also fix mach/vc4/ncg/mach.c where type full is long, so fprintf()
must use "%ld" not "%d" to print full nlocals.
2017-11-13 14:23:44 -05:00
..
instrmacs.h added m68k2 stuff, added patterns 1990-08-20 13:55:38 +00:00
mach.c Declare machine-dependent functions in mach/proto/ncg 2017-11-13 14:23:44 -05:00
mach.h Header --> Id 1994-06-24 14:02:31 +00:00
README Fix to fix 1991-03-25 13:16:02 +00:00
table linux68k builds now. 2016-08-14 11:34:18 +02:00
whichone.h Check in incomplete Linux PowerPC and M68K work. 2013-05-08 00:48:48 +01:00

The file 'table' in this directory contains a back end table for the
MC68020 processor as well as one for the MC68000. Both tables use 2 or 4 bytes
for words and 4 bytes for pointers. The table must be preprocessed first
by the C preprocessor.
The file "whichone.h" specifies which code generator is generated:
it #defines either TBL68000 or TBL86020, and it defines WORD_SIZE to either
2 or 4.
The m68k4(TBL68000) cg can very well be used for the MC68010 processor,
for it makes rather efficient use of the 68010 loop mode.

The mach.[ch] files are also suitable for both the m68020 and the m68k[24].