From c63ecc8c2812679c639289ae6da053d6f6166e07 Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 23 Apr 2010 18:34:52 +0000 Subject: [PATCH] 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 --- doc/cl65.sgml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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: