From ca048d553882d6e54ca17eb63bad318665cdf181 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 1 Feb 2017 16:56:30 -0500 Subject: [PATCH] Add new command line options --- cyclone.scm | 13 ++++++++----- docs/User-Manual.md | 5 ++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/cyclone.scm b/cyclone.scm index 723a966a..13a89e4a 100644 --- a/cyclone.scm +++ b/cyclone.scm @@ -421,13 +421,16 @@ ((or (member "-h" args) (member "--help" args)) (display " - -t Show intermediate trace output in generated C files - -d Only generate intermediate C files, do not compile them - -h, --help Display usage information - -v Display version information + -A directory Append directory to the list of directories that are searched + in order to locate imported libraries. + -I directory Prepend directory to the list of directories that are searched + in order to locate imported libraries. -Ox Optimization level, higher means more optimizations will be used. Set to 0 to disable optimizations. - --autogen Cyclone developer use only, create autogen.out file + -d Only generate intermediate C files, do not compile them + -t Show intermediate trace output in generated C files + -h, --help Display usage information + -v Display version information ") (newline)) ((member "-v" args) diff --git a/docs/User-Manual.md b/docs/User-Manual.md index 56186736..9a2fde14 100644 --- a/docs/User-Manual.md +++ b/docs/User-Manual.md @@ -94,8 +94,11 @@ Cyclone will not automatically generate libraries when compiling a program. Each Option | Notes ------ | ----- -`-t` | Show intermediate trace output in generated C files +`-A directory` | Append directory to the list of directories that are searched in order to locate imported libraries. +`-I directory` | Prepend directory to the list of directories that are searched in order to locate imported libraries. +`-Ox` | Optimization level, higher means more optimizations will be used. Set to 0 to disable optimizations. `-d` | Only generate intermediate C files, do not compile them. This option will also show the C compiler commands that would have been used to compile the C file. +`-t` | Show intermediate trace output in generated C files `-h, --help` | Display usage information `-v` | Display version information