From: uz Date: Fri, 23 Apr 2010 18:34:52 +0000 (+0000) Subject: Added a paragraph about the order in which the command line is parsed. X-Git-Tag: V2.13.3~776 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c63ecc8c2812679c639289ae6da053d6f6166e07;p=cc65 Added a paragraph about the order in which the command line is parsed. git-svn-id: svn://svn.cc65.org/cc65/trunk@4647 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/cl65.sgml b/doc/cl65.sgml index 484c6e966..ccb614efc 100644 --- a/doc/cl65.sgml +++ b/doc/cl65.sgml @@ -205,6 +205,19 @@ package, it tries to be smart about several things. cases, just give the name of your "main" file as first input file. +The command line is parsed from left to right, and the actual processing tool +(compiler, assembler, ...) is invoked whenever a file name is encountered. +This means that only the options to the left of a file name are in effect when +this file is processed. It does also mean that you're able to specify +different options for different files on the command line. As an example. + + + cl65 -Oirs main.c -O -g module.c + + +translates main.c with full optimization and module.c with less optimization +and debug info enabled. + The type of an input file is derived from its extension: