README 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # $Source$
  2. # $State$
  3. # $Revision$
  4. THE AMSTERDAM COMPILER KIT V6.0pre1
  5. ===================================
  6. © 1987-2005 Vrije Universiteit, Amsterdam
  7. INTRODUCTION
  8. ============
  9. The Amsterdam Compiler Kit is a complete compiler toolchain consisting of
  10. front end compilers for a number of different languages, code generators,
  11. support libraries, and all the tools necessary to go from source code to
  12. executable on any of the platforms it supports.
  13. This is an early prerelease of the upcoming version 6.0 release. Not a
  14. lot is supported, the build mechanism needs work, and a lot of things are
  15. probably broken. However, what's there should be sufficient to get things
  16. done and to evaluate how the full 6.0 release should work.
  17. SUPPORT
  18. =======
  19. Languages:
  20. ANSI C, K&R C, Pascal, Modula 2, Occam 1, and a Basic variant.
  21. Platforms:
  22. pc86 produces bootable floppy disk images for 8086 PCs
  23. INSTALLATION
  24. ============
  25. The version 6.0 build mechanism has been completely rewritten and is based
  26. around the Prime Mover build tool (see http://primemover.sf.net for more
  27. information). Installation ought to be fairly straightforward.
  28. Requirements:
  29. - an ANSI C compiler. Currently, I'm afraid, it's hard-coded to use gcc.
  30. To change, try changing the variable definitions in first/c.pm. This also
  31. needs to be available as 'cc' from the shell.
  32. - about 20MB free in /tmp (or some other temporary directory).
  33. - about 6MB in the target directory.
  34. Instructions:
  35. - edit config.pm. There's a small section at the top containing some editable
  36. variables. Probably the only one you may want to edit is PREFIX, which
  37. changes where the ACK installs to.
  38. - Run:
  39. ./pm configure
  40. ...from the command line. This will write out a configuration file.
  41. - Run:
  42. ./pm
  43. ...from the command line. This will actually do the build. This takes
  44. about two minutes on my 1.6GHz Athlon.
  45. - Run:
  46. ./pm install
  47. ...from the command line. This will install the built ACK into whatever
  48. directory you nominated in PREFIX.
  49. The ACK should now be ready to use.
  50. USAGE
  51. =====
  52. Currently I haven't sorted out all the documentation --- it's supplied in the
  53. distribution, but not all of it gets installed yet --- so here is a quickstart
  54. guide.
  55. The main command to use is 'ack'. This invokes the compiler and the linker.
  56. Some useful options include:
  57. -m<platform> build for the specified platform
  58. -o <file> specifies the output file
  59. -c produce a .o file
  60. -c.s produce a .s assembly file
  61. -O enable optimisation
  62. -ansi compile ANSI C (when using the C compiler)
  63. <file> build file
  64. ack figures out which language to use from the file extension:
  65. .c C (ANSI or K&R)
  66. .b Basic
  67. .mod Modula-2
  68. .ocm Occam 1
  69. .p Pascal
  70. .o object files
  71. .s assembly files
  72. For further information, see the man page (which actually does get
  73. installed, but is rather out of date).
  74. There are some (known working) example programs in the 'examples' directory.
  75. GOTCHAS
  76. =======
  77. There are some things you should be aware of.
  78. - The only platform supported so far is pc86, which generates 8086 tiny mode
  79. executables that will work as floppy disk boot images. So, to run, simply dd
  80. the output file (pc86.img by default) onto a floppy disk and boot from it.
  81. Be aware that very little functionality is supported and that the entire
  82. program, heap and stack and code and all, must fit within 64kB. See
  83. plat/pc86/README for more information.
  84. - By default, the ack tool will compile K&R C. Practically all C source these
  85. days is ANSI C --- use the -ansi switch to enable ANSI mode. No, the ACK is
  86. not C99 compatible.
  87. - When compiling languages other than C, the ACK will usually look at the
  88. first character of the file. If it's a #, then the file will be run through
  89. the C preprocessor anyway.
  90. DISCLAIMER
  91. ==========
  92. The ACK is mature, well-tested software, but the environment in which it was
  93. developed for and tested under is rather different from that available on
  94. today's machines. There will probably be little in the way of logical bugs,
  95. but there may be many compilation and API bugs.
  96. If you wish to use the ACK, *please* join the mailing list. We are interested
  97. in any reports of success and particularly, failure. If it does fail for you,
  98. we would love to know why, in as much detail as possible. Bug fixes are even
  99. more welcome.
  100. The ACK is licensed under a BSD-like license. Please see the 'Copyright' file
  101. for the full text.
  102. You can find the mailing list on the project's web site:
  103. http://tack.sourceforge.net/
  104. Please enjoy.
  105. David Given (dtrg on Sourceforge)
  106. dg@cowlark.com
  107. 2007-02-25