Bob Andrews
4e2a3bde92
Merge pull request #2499 from kugelfuhr/kugelfuhr/disable-recursive-calls-to-main
...
Disallow recursive calls to main() in cc65 mode
2024-09-07 14:39:28 +02:00
Kugel Fuhr
cd4357057f
The change from #2495 didn't take into account that recursive calls to main()
...
are legal in C. With the changes from #2495 , such calls will usually crash the
machine. But recursive calls to main() are rare and on the 6502 every byte
saved is precious. So this change limits the effect of #2495 to cc65 mode and
at the same time disallows recursive calls to main() in this mode. If
recursive calls to main() are actually required, the code must be compiled in
c89 or c99 mode.
2024-09-02 10:39:42 +02:00
Kugel Fuhr
e2014611ef
Improve the usage output for the '-W' option.
2024-09-02 07:02:41 +02:00
Kugel Fuhr
4008ec5814
Document the new #pragma names.
2024-09-01 10:23:10 +02:00
acqn
b66682a05b
Fixed wrapped call when the function to wrap has already got defined before it is wrapped with the pragma.
2023-12-10 00:47:10 +08:00
acqn
21b6cbb66e
Updated documentation on string literal translation in asm() and _Static_assert().
2023-10-15 16:43:40 +08:00
mrdudz
bb92144717
changed "inline assembler statement" to "inline assembler expression" as suggested in #2191
2023-10-14 16:21:30 +02:00
Bob Andrews
05cd805cbc
Merge pull request #2085 from bbbradsmith/numerical_constant_errors-float
...
Numerical constant errors and improvements (float)
2023-08-25 22:30:07 +02:00
Bob Andrews
9c27084fa5
Merge pull request #2084 from bbbradsmith/numerical_constant_errors-int
...
Numerical constant errors and improvements (integer)
2023-05-06 21:36:59 +02:00
bbbradsmith
e3887d7ead
Test to demonstrate availability of floating point constants, document the possibility.
2023-05-03 16:48:02 -04:00
Bob Andrews
ae7a1416fe
Revert "Revert "Forbid 3-byte struct pass/return by value, document struct value pass/return""
2023-05-03 20:02:12 +02:00
Bob Andrews
6ffc4004d7
Revert "Forbid 3-byte struct pass/return by value, document struct value pass/return"
2023-05-03 14:24:13 +02:00
bbbradsmith
456fa9f963
cc65 document: both pass and return of structs are allowed
2023-05-03 05:36:37 -04:00
bbbradsmith
409235aee6
Optional warning for implicit constant conversion overflow
2023-05-02 22:27:28 -04:00
bbbradsmith
af11d4d947
Document that struct-param is default off since: 3129266
2023-05-02 19:21:21 -04:00
bbbradsmith
e7046a02ff
Disallow pass/return of 3-byte struct ( #2022 ), document capability added in #1102 .
2023-05-02 19:00:34 -04:00
acqn
b93f9fbba4
Updated documents about the predefined macros.
2022-08-18 22:51:23 +08:00
mrdudz
1b73ffb8ae
document changes to __CC65__
2022-05-10 01:13:24 +02:00
Bob Andrews
58de94edd4
Merge pull request #1560 from empathicqubit/master
...
Add --debug-tables <filename> option and output struct fields
2022-03-20 20:27:15 +01:00
empathicqubit
49b4a57add
Documentation
2022-02-20 12:40:32 +01:00
polluks
f7fa81b244
Fixed many typos
2022-02-03 01:01:10 +01:00
polluks2
1cdd4676b2
Fixed many typos
2021-12-14 13:13:16 +01:00
Wayne Parham
69e2313a63
First round of requested code changes
2021-06-06 23:20:54 +01:00
Greg King
5d198d6842
Fixed some URL links in a couple of documents.
2021-05-12 05:05:39 -04:00
Bob Andrews
82ee502f57
Merge branch 'master' into wrapped-call
2021-05-11 14:16:25 +02:00
mrdudz
ef8c70c7af
use url instead of htmlurl, add note on least significant 8bits of the bank value
2021-05-11 13:36:30 +02:00
mrdudz
3ea330f15f
update docs
2021-05-08 01:03:43 +02:00
mrdudz
729690e9e9
document the wrapped-call extension
2021-05-05 16:07:47 +02:00
Greg King
6bb1b6953f
Documented the options to control cc65's warnings about induced pointer type changes.
2021-04-17 01:59:09 -04:00
Dirk Lehmann
eb1cf750f2
-W-unreachable-code option added, alphabetic order of --list-warnings
2021-04-13 09:37:55 +02:00
Oliver Schmidt
a861d84011
Fixed recent addition of __A__.
2021-01-06 16:09:55 +01:00
Piotr Kaczorowski
0884278ae3
Correction in documentation regarding __A__ pseudo variable
2021-01-06 16:05:04 +01:00
Piotr Kaczorowski
e3fa247012
Yet another fix typo in cc65.sgml
2021-01-06 16:05:04 +01:00
Piotr Kaczorowski
601e628343
Another fix typo in cc65.sgml
2021-01-06 16:05:04 +01:00
Piotr Kaczorowski
68e1faa2c8
Fix typo in cc65.sgml
2021-01-06 16:05:04 +01:00
Piotr Kaczorowski
9662469957
Return-type warning and pseudo variable __A__ documentation added.
2021-01-06 16:05:04 +01:00
Greg King
59c58acbe3
Documented the address size argument of the bss-name, code-name, data-name, and rodata-name pragmas.
2020-12-05 23:04:48 -05:00
Oliver Schmidt
8e685a0071
Mention recursion.
2020-10-23 18:35:14 +02:00
Greg King
ae6696fcb9
Removed some ambiguity from a statement.
...
A limited number of bit-field types are required by the C standard, not by cc65.
2020-09-08 10:55:07 -04:00
Jesse Rosenstock
4e4e4c2d21
Allow char bit-fields
...
These are not required to be supported (only int, signed int, and
unsigned int are required), but most compilers support it.
https://port70.net/~nsz/c/c89/c89-draft.html#3.5.2.1
https://port70.net/~nsz/c/c89/c89-draft.html#A.6.5.8
For consistency with other integral types, plain `char` bit-fields
are unsigned, regardless of the `--signed-chars` option.
Fixes #1047
2020-09-08 14:24:04 +02:00
Jesse Rosenstock
85e8a6cb9f
Clarify docs that bss is zero-initialized
...
Addresses comment raised in #1202 .
2020-08-19 13:24:15 +02:00
Jesse Rosenstock
7e61b11f23
Add _Static_assert docs to cc65 extensions
...
Fixes #1149 .
2020-08-16 21:57:04 +02:00
IrgendwerA8
ce80624f62
ctype size optimization
2020-02-03 20:45:09 +01:00
Greg King
18afc7c703
Created a target and a library for the Commander X16 prototype computer.
2019-09-27 03:38:51 -04:00
Lauri Kasanen
5cbbb4597f
Document binary literals
2019-07-20 17:21:42 +02:00
Brad Smith
38d2eb7a0e
cc65.sgml incorrectly closed tt
2019-05-29 22:41:24 +02:00
Brad Smith
d56e3adf2f
CC65 -> cc65
2019-05-15 18:19:45 +02:00
Brad Smith
0d000bb629
Document --debug-opt-output and --debug-opt
2019-05-15 18:19:45 +02:00
Lauri Kasanen
f16ce22281
doc: Rename aux member to data
2019-05-15 11:17:45 +02:00
Lauri Kasanen
c2f3421dee
Document using inline asm with SoA, structs with array members
2019-05-15 11:17:45 +02:00