From: cuz Date: Tue, 20 Mar 2001 10:24:54 +0000 (+0000) Subject: Describe new --check-stack option and related #pragma. Added missing X-Git-Tag: V2.12.0~2922 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83f8ce6f3934f5614f72c9e056d66ad68c676a88;p=cc65 Describe new --check-stack option and related #pragma. Added missing descriptions for the options to set the segment names from the command line. git-svn-id: svn://svn.cc65.org/cc65/trunk@636 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 234ce16f8..e25c2db83 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -74,17 +74,22 @@ Short options: -W Suppress warnings Long options: - --ansi Strict ANSI mode - --cpu type Set cpu type - --debug Debug mode - --debug-info Add debug info to object file - --help Help (this text) - --include-dir dir Set an include directory search path - --signed-chars Default characters are signed - --static-locals Make local variables static - --target sys Set the target system - --verbose Increase verbosity - --version Print the compiler version number + --ansi Strict ANSI mode + --bss-name seg Set the name of the BSS segment + --check-stack Generate stack overflow checks + --code-name seg Set the name of the CODE segment + --cpu type Set cpu type + --data-name seg Set the name of the DATA segment + --debug Debug mode + --debug-info Add debug info to object file + --help Help (this text) + --include-dir dir Set an include directory search path + --rodata-name seg Set the name of the RODATA segment + --signed-chars Default characters are signed + --static-locals Make local variables static + --target sys Set the target system + --verbose Increase verbosity + --version Print the compiler version number --------------------------------------------------------------------------- @@ -103,6 +108,23 @@ Here is a description of all the command line options: --bss-name seg + + Set the name of the bss segment. + + + --check-stack + + Tells the compiler to generate code that checks for stack overflows. See + for an + explanation of this feature. + + + --code-name seg + + Set the name of the code segment. + + --cpu CPU A new, still experimental option. You may specify "6502" or "65C02" as @@ -137,6 +159,11 @@ Here is a description of all the command line options: Print the short option summary shown above. + --rodata-name seg + + Set the name of the rodata segment (the segment used for readonly data). + + -j, --signed-chars Using this option, you can make the default characters signed. Since the @@ -430,8 +457,8 @@ This cc65 version has some extensions to the ISO C standard. string.

- cc65 allows the initialization of cc65 allows the initialization of @@ -447,7 +474,7 @@ This cc65 version has some extensions to the ISO C standard. .word $3000 - Since the variable is of type +#pragma checkstack (<const int>)

+ + Tells the compiler to insert calls to a stack checking subroutine to detect + stack overflows. The stack checking code will lead to somewhat larger and + slower programs, so you may want to use this pragma when debugging your + program and switch it off for the release version. If a stack overflow is + detected, the program is aborted. + + If the argument is zero, stack checks are disabled (the default), otherwise + they're enabled. + + #pragma codeseg (<name>)

This pragma changes the name used for the CODE segment (the CODE segment @@ -579,7 +619,7 @@ generation and other stuff. Example: - #pragma bssseg ("MyCODE") + #pragma bssseg ("MyCODE") @@ -595,7 +635,7 @@ generation and other stuff. Example: - #pragma bssseg ("MyDATA") + #pragma bssseg ("MyDATA") @@ -611,7 +651,7 @@ generation and other stuff. Example: - #pragma bssseg ("MyRODATA") + #pragma bssseg ("MyRODATA") @@ -640,7 +680,7 @@ generation and other stuff. #pragma signedchars (<const int>)

- Changed the signedness of the default character type. If the argument + Changes the signedness of the default character type. If the argument is not zero, default characters are signed, otherwise characters are unsigned. The compiler default is to make characters unsigned since this creates a lot better code. This default may be overridden by the