home *** CD-ROM | disk | FTP | other *** search
- !Help for !C_Compile version 2.00
-
- Have you had problems running C off the desktop?
-
- Are you sick and tired of typing in the options at
- every compilation ?
-
- Well, you need !C_Compile...
-
- What the program does :
- -----------------------
-
- This is a short application that allows you to compile
- C programs by dragging the source file onto the icon.
-
- It also allows options to be typed in, and stored for
- frequent use.
-
- How to use the program :
- ------------------------
-
- Load it in the usual way. An icon will appear on the
- bottom left hand side. Presing Menu will reveal the
- following options :
-
- Info -> The usual info
- Options -> The options the program is currently
- set up for
- Quit Quit (funnily enough)
-
- How to compile a C program :
- ----------------------------
-
- Assume the options have been set up correctly. In order
- to compile a file, it must be in a c. directory. i.e. it
- must have the form :
-
- adfs::SomeDrive.$.CFiles.User.C.ThisCProgm
-
- This means that the file must be preceded by a '.C.' or a
- '.c.'. This is beacause you need somewhere to store the
- object and the other code. You also need (at the same level
- as the 'c') a directory called 'o' and some other ones if
- you wish to use some other features of the compiler (see the
- Acorn manual for more details).
- So, if you want to set up a directory for compiling C
- programs, you would have to have the directory structure :
-
- $.<PATH_ELEMENTS>.C
- $.<PATH_ELEMENTS>.O
-
- and the various other directories.
-
- When you wish to compile the program, drag the text file onto
- the icon. If it is not in a 'C' directory, then it will
- complain.
- The computer will then start compiling the C code if all is well.
- Any errors will be reported in the command screen in the middle
- of the desktop.
- For more details of the C compilation, and the options available,
- consult the Acorn manual, or type *CC -help <return> at the
- command line. This will display all the options you can type in at
- the options window.
-
- Options :
- ---------
-
- If you don't want you CLib et al on your root (I certainly don't -
- it looks messy), then you need to set your library directories, in
- order for the C compiler (and the linker) to compile (and link)
- files. To do this, there are a couple of points you may need. In
- order to reduce the number of characters sent to the CLI handler,
- you can use the *SET command to set the CLib directory, and the
- Risc_OSLib directory. These are set in the !Run of !C_Compile,
- and you can change them for your own directory. I have set mine as
-
- CLib : scsi::Jitter.$.C.CLib
- Risc_OSLib : scsi::Jitter.$.C.Risc_OSLib
-
- The default include directory needs to be changed to <Clib>, and
- the <Risc_OSLib> needs to be Included in the list.
-
- The linker needs to be told where the Risc_OSLib and the CLib is.
- This is achieved in the Libraries section of the options window.
- The two libraries it needs are <Clib>.o.stubs, and
- <Risc_OSLib>.o.Risc_OSLib and if these are entered (separated by
- a comma), then everything (apart from the Dhrystone tests) will
- compile.
-
- The various options at the top of the window control the compiler's
- flags directly. You set these to make them take effect. Another
- option is the change object file. If you are compiling the Desktop
- example programs provided in release 3, then they need to be
- compiled into !RunImage. If the option is off, then it will use the
- c.<file> name, otherwise it will use the name given. You don't need
- to give the pathname (unless you wish to compile it elsewhere),
- since the CSD is changed to <dir> of the <dir>.c.<file>.
-
- Another option is the path of the C compiler itself. This must be
- set if you either havn't got it in a library, or you are using the
- compiler on a different filing system to the source. If, for example,
- the C compiler is in adfs::CDisc1.Compiler, and it's called CC, then
- you enter adfs::CDisc1.Compiler.CC as the pathname.
-
- Versions this program will work on :
- ------------------------------------
-
- This is originally based to work on the C release 1. It was re-
- written when I worked out how to do module tasked properly, but
- I don't see any reason why it shouldn't work on any version of C.
- (It works fine on Release 3).
-
- Updates since pre 1.00 :
- ------------------------
-
- 1.00 - Load and save ability put in. Re-written so it
- didn't cause an error on quitting. Called !C.
- 1.01 - Improved saving ability.
- 1.02 - Didn't crash as much.
- 1.02b - New sprite.
- 1.03 - Stopped working (bad code - couldn't work out why
- it stopped :-( ).
- 2.00 - Totally re-written as an application (rather than
- a module. Neater arrangement of windows - used
- template files, and each option can be specified
- directly, rather than having to remember each of
- the options. Icon moved to the left. Also renamed
- to !C_Compile.
-
- And Finally :
- -------------
-
- If you would like a FREE update (assuming one available), send
- me a disc, AND return postage, and I'll be glad to send you one
- along.
-
- Also if you have any comments about this program, or any others
- I have written, please contact me :
-
- The World Of Cryton : Jason "P" Tribbeck (#140)
- Arcade : Jason "p" Tribbeck (#836)
- Equinox : Jason Tribbeck
-
- Jason Tribbeck
- 36 Nettlecombe Ave.,
- Southsea,
- Hants.
- PO4 OQW.
-
- Tel : (0705) 755210 (if I'm in)