Skip to content

Commit

Permalink
Updated for the 6.0pre2 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrg committed Apr 24, 2007
1 parent bc5ccee commit 24ea8ae
Show file tree
Hide file tree
Showing 20 changed files with 171 additions and 183 deletions.
30 changes: 6 additions & 24 deletions .distr
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
README
CHANGES
Copyright
pm
pmfile
Expand Down Expand Up @@ -29,7 +30,7 @@ util/cmisc
util/ack
lib/descr/fe
util/arch
util/cpp
#util/cpp
util/cgg
util/ncgg
util/misc
Expand All @@ -41,33 +42,14 @@ util/led
lang/cem
lang/pc
lang/m2
lang/occam
lang/basic
#lang/occam
#lang/basic

mach/proto
mach/i86
mach/i386

plat/pc86
plat/linux386

examples

#Action
#NEW
#README
#TODO
#TakeAction
#bin
#doc
#emtest
#etc
#fast
#fcc
#first
#h
#include
#modules
#lang
#lib
#mach
#man
#util
21 changes: 21 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# $Source$
# $State$
# $Revision$

6.0pre2

Much simplified the syscall interface by disabling libmon and instead
calling the syscalls directly. Disabled the K&R C compiler and libc because
it doesn't actually gain us anything and has a high maintenance load --- the
ANSI C compiler works fine with K&R C. Adapted the rest of the system to
build with the ANSI C compiler. Rewrote the pc86 syscall interface and added
linux386 support, using the i386 code generator. Lots and lots of bugfixes
and tweaks everywhere.

6.0pre1

First working version of the 6.0 release stream. Working frontends: both C
compilers, Pascal, Modula-2, Basic and Occam. Working backends: i86. Working
platforms: pc86, the very noddy testbed setup that produces floppy disk
images.

25 changes: 12 additions & 13 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# $State$
# $Revision$

THE AMSTERDAM COMPILER KIT V6.0pre1
THE AMSTERDAM COMPILER KIT V6.0pre2
===================================

© 1987-2005 Vrije Universiteit, Amsterdam
2007-02-25
2007-04-24


INTRODUCTION
Expand All @@ -28,11 +28,12 @@ SUPPORT

Languages:

ANSI C, K&R C, Pascal, Modula 2, Occam 1, and a Basic variant.
ANSI C, Pascal, Modula 2. K&R is supported via the ANSI C compiler.

Platforms:

pc86 produces bootable floppy disk images for 8086 PCs
linux386 produces ELF executables for PC Linux systems


INSTALLATION
Expand Down Expand Up @@ -114,23 +115,21 @@ For further information, see the man page (which actually does get
installed, but is rather out of date).

There are some (known working) example programs in the 'examples' directory.
A sample command line is:

ack -mlinux386 -O examples/paranoia.c


GOTCHAS
=======

There are some things you should be aware of.

- The only platform supported so far is pc86, which generates 8086 tiny mode
executables that will work as floppy disk boot images. So, to run, simply dd
the output file (pc86.img by default) onto a floppy disk and boot from it.
Be aware that very little functionality is supported and that the entire
program, heap and stack and code and all, must fit within 64kB. See
plat/pc86/README for more information.
- Look at plat/linux386/README and plat/pc86/README for information about the
two supported platforms.

- By default, the ack tool will compile K&R C. Practically all C source these
days is ANSI C --- use the -ansi switch to enable ANSI mode. No, the ACK is
not C99 compatible.
- The library support is fairly limited; for C, it's at roughly the ANSI C
level, and for the other languages it's similar.

- When compiling languages other than C, the ACK will usually look at the
first character of the file. If it's a #, then the file will be run through
Expand Down Expand Up @@ -167,4 +166,4 @@ Please enjoy.

David Given (dtrg on Sourceforge)
[email protected]
2007-02-25
2007-04-24
2 changes: 2 additions & 0 deletions examples/.distr
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ hilo.mod
hilo.ocm
hilo.p
paranoia.c
startrek.c
startrek.doc
README
4 changes: 2 additions & 2 deletions lang/cem/.distr
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pmfile
cemcom.ansi
cpp.ansi
libcc.ansi
cemcom
libcc
#cemcom
#libcc
15 changes: 8 additions & 7 deletions lang/cem/libcc.ansi/headers/.distr
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
sys/time.h
sys/ioctl.h
assert.h
ctype.h
dirent.h
errno.h
float.h
grp.h
limits.h
locale.h
math.h
mathconst.h
setjmp.h
signal.h
stdarg.h
Expand All @@ -16,6 +14,9 @@ stdio.h
stdlib.h
string.h
time.h
varargs.h
sys/dirent.h
sys/errno.h
iso646.h
stdbool.h
fcntl.h
tgmath.h
locale.h
stdint.h
21 changes: 0 additions & 21 deletions lang/cem/libcc.ansi/misc/.distr
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
closedir.c
fdopen.c
getdents.c
getgrent.c
getopt.c
getpass.c
getpw.c
getw.c
isatty.c
opendir.c
popen.c
putenv.c
environ.c
putw.c
readdir.c
rewinddir.c
seekdir.c
sleep.c
telldir.c
termcap.c
mktemp.c
hypot.c
38 changes: 19 additions & 19 deletions lang/cem/libcc.ansi/pmfile
Original file line number Diff line number Diff line change
Expand Up @@ -269,26 +269,26 @@ local libc = acklibrary {

local headers = group {
install = {
pm.install(d.."headers/sys/time.h", "%BINDIR%include/ansi/sys/time.h"),
pm.install(d.."headers/sys/time.h", "%BINDIR%include/ansi/sys/time.h"),
pm.install(d.."headers/sys/ioctl.h", "%BINDIR%include/ansi/sys/ioctl.h"),
pm.install(d.."headers/assert.h", "%BINDIR%include/ansi/assert.h"),
pm.install(d.."headers/ctype.h", "%BINDIR%include/ansi/ctype.h"),
-- pm.install(d.."headers/dirent.h", "%BINDIR%include/ansi/dirent.h"),
pm.install(d.."headers/errno.h", "%BINDIR%include/ansi/errno.h"),
pm.install(d.."headers/float.h", "%BINDIR%include/ansi/float.h"),
-- pm.install(d.."headers/grp.h", "%BINDIR%include/ansi/grp.h"),
pm.install(d.."headers/limits.h", "%BINDIR%include/ansi/limits.h"),
-- pm.install(d.."headers/locale.h", "%BINDIR%include/ansi/locale.h"),
pm.install(d.."headers/math.h", "%BINDIR%include/ansi/math.h"),
-- pm.install(d.."headers/mathconst.h", "%BINDIR%include/ansi/mathconst.h"),
pm.install(d.."headers/setjmp.h", "%BINDIR%include/ansi/setjmp.h"),
pm.install(d.."headers/signal.h", "%BINDIR%include/ansi/signal.h"),
pm.install(d.."headers/stdarg.h", "%BINDIR%include/ansi/stdarg.h"),
pm.install(d.."headers/stddef.h", "%BINDIR%include/ansi/stddef.h"),
pm.install(d.."headers/stdio.h", "%BINDIR%include/ansi/stdio.h"),
pm.install(d.."headers/stdlib.h", "%BINDIR%include/ansi/stdlib.h"),
pm.install(d.."headers/string.h", "%BINDIR%include/ansi/string.h"),
pm.install(d.."headers/time.h", "%BINDIR%include/ansi/time.h"),
pm.install(d.."headers/assert.h", "%BINDIR%include/ansi/assert.h"),
pm.install(d.."headers/ctype.h", "%BINDIR%include/ansi/ctype.h"),
pm.install(d.."headers/errno.h", "%BINDIR%include/ansi/errno.h"),
pm.install(d.."headers/float.h", "%BINDIR%include/ansi/float.h"),
pm.install(d.."headers/limits.h", "%BINDIR%include/ansi/limits.h"),
pm.install(d.."headers/math.h", "%BINDIR%include/ansi/math.h"),
pm.install(d.."headers/setjmp.h", "%BINDIR%include/ansi/setjmp.h"),
pm.install(d.."headers/signal.h", "%BINDIR%include/ansi/signal.h"),
pm.install(d.."headers/stdarg.h", "%BINDIR%include/ansi/stdarg.h"),
pm.install(d.."headers/stddef.h", "%BINDIR%include/ansi/stddef.h"),
pm.install(d.."headers/stdio.h", "%BINDIR%include/ansi/stdio.h"),
pm.install(d.."headers/stdlib.h", "%BINDIR%include/ansi/stdlib.h"),
pm.install(d.."headers/string.h", "%BINDIR%include/ansi/string.h"),
pm.install(d.."headers/time.h", "%BINDIR%include/ansi/time.h"),
pm.install(d.."headers/iso646.h", "%BINDIR%include/ansi/iso646.h"),
pm.install(d.."headers/stdbool.h", "%BINDIR%include/ansi/stdbool.h"),
pm.install(d.."headers/locale.h", "%BINDIR%include/ansi/locale.h"),
pm.install(d.."headers/tgmath.h", "%BINDIR%include/ansi/tgmath.h"),
}
}

Expand Down
1 change: 0 additions & 1 deletion lang/cem/libcc.ansi/setjmp/.distr
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
setjmp.e
sigmisc.c
3 changes: 0 additions & 3 deletions lang/cem/libcc.ansi/stdio/.distr
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@ getc.c
getchar.c
gets.c
icompute.c
isatty.c
loc_incl.h
perror.c
printf.c
putc.c
putchar.c
puts.c
remove.c
rename.c
rewind.c
scanf.c
setbuf.c
Expand Down
4 changes: 2 additions & 2 deletions lang/cem/pmfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

local d = ROOTDIR.."lang/cem/"

include (d.."cemcom/pmfile")
-- include (d.."cemcom/pmfile")
include (d.."cemcom.ansi/pmfile")
include (d.."libcc/pmfile")
-- include (d.."libcc/pmfile")
include (d.."libcc.ansi/pmfile")
12 changes: 3 additions & 9 deletions mach/i386/.distr
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
Action
pmfile
as
ce
cv
libend
libem
libfp
libsys
libdb
ncg
mach_params
libem
libend
47 changes: 45 additions & 2 deletions mach/i386/libem/.distr
Original file line number Diff line number Diff line change
@@ -1,2 +1,45 @@
LIST
libem_s.a
pmfile
adi.s
and.s
blm.s
cii.s
cms.s
com.s
csa4.s
csb4.s
cuu.s
dup.s
dvi.s
dvu.s
error.s
exg.s
fat.s
fp8087.s
gto.s
iaar.s
ilar.s
inn.s
ior.s
isar.s
lar4.s
loi.s
mli.s
mon.s
ngi.s
nop.s
print.s
rck.s
rmi.s
rmu.s
rol.s
ror.s
sar4.s
sbi.s
set.s
sli.s
sri.s
sti.s
strhp.s
trp.s
unknown.s
xor.s
7 changes: 5 additions & 2 deletions mach/i386/libend/.distr
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
LIST
end_s.a
pmfile
edata.s
em_end.s
end.s
etext.s
28 changes: 20 additions & 8 deletions plat/linux386/.distr
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,25 @@ descr
boot.s
pmfile
README
include/ack/config.h
include/unistd.h
libsys/pmfile
libsys/libsys.h
libsys/_sys_rawwrite.s
libsys/_mon.s
libsys/_sys_write.c
libsys/_sys_read.c
libsys/_sys_rawread.s
libsys/_brk.s
libsys/_exit.c
libsys/_hol0.s
libsys/_syscall.s
libsys/brk.c
libsys/close.c
libsys/creat.c
libsys/errno.s
libsys/_sys_ioctl.c
libsys/getpid.c
libsys/gettimeofday.c
libsys/isatty.c
libsys/kill.c
libsys/libsys.h
libsys/lseek.c
libsys/open.c
libsys/read.c
libsys/sbrk.c
libsys/signal.c
libsys/syscalls.h
libsys/write.c
Loading

0 comments on commit 24ea8ae

Please sign in to comment.