home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-20 | 2.3 KB | 62 lines | [TEXT/ttxt] |
- Prerequisites:
-
- 68020, 68030, 68040, or PPC macintosh
- (i.e. anything except a mac plus or PB100)
- System 7
- BBedit Lite or similar program for editing source code
- 8 Megs or so available memory (depending on partition size tuning)
-
- You will have received this program either as a CD-ROM
- already expanded, or as an application dropg++.sea
- which you can double click to expand.
-
- If you don't trust self-extracting archives, you can use the
- freely available program DDexpand to install.
-
- In either case you will end up with a top level folder named dropg++
-
- Make an alias to dropg++ (single click on folder followed by file/make alias
- rename this alias root, and then move it to the preferences folder (inside System Folder)
-
- When dropg++ starts up, it reads the preferences folder, and uses the alias named root
- to find the installation location (the root of all file name references)
-
- It may be necessary to rebuild the desktop at this point
- (restart whilst holding down apple and option)
-
- open the examples folder, choose a .c or a .cc file
- drop it on the gcc icon, and stand well back
-
- eventually, if you see no errors, a file will be generated in the source (.c or .cc)
- folder, named a.out, with the application icon. Immediately rename this file
- to your chosen name, or else it will be overwritten next time you invoke gcc
-
- You can execute this program by dropping a file on it, or by double clicking
- and choosing file/open or file/flags followed by execute. In the former case
- the file and its current directory will be passed as arguments, otherwise
- the flags you type literally will be passed.
-
- e.g. to run the program dhry-opt or dhry-nonopt
-
- double click
- file/flags
- type 10000
- execute
-
- this will run the dhrystone program for 10000 iterations (a benchmark)
-
- e.g. to run the program showargs
-
- drag any data file onto the showargs icon
-
- the program will print up the file name and its size (data fork only) and exit
-
- on exit the programs output (anything written to stdout/stderr,cout/cerr
- will be copied to the clipboard, so you can view it with edit/show clipboard
-
- If you have more than one source file to compile e.g. dhry_1.c dhry_2.c
- shift click on them both and drag onto the gcc icon
-
- You can customize the operation of gcc by editing the file specs in the
- usr:lib:gcc-lib:hp300bsd:2.7.2 folder, but do this at your own risk!
-