1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-02 18:06:48 +00:00
Commit Graph

1634 Commits

Author SHA1 Message Date
cuz
c3661446ee Document the new #pragma syntax. Add comment about not using the asm names
of global symbols in inline assembler statements.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1460 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:44:19 +00:00
cuz
ab4a9eb5db Remove paragraph about initializaton of locals
git-svn-id: svn://svn.cc65.org/cc65/trunk@1459 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:16:08 +00:00
cuz
83fb2c8ab4 Allow initialization of local variables of compound type
git-svn-id: svn://svn.cc65.org/cc65/trunk@1458 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:15:24 +00:00
cuz
dcdaf8fd49 Restructured DeclareLocals()
git-svn-id: svn://svn.cc65.org/cc65/trunk@1457 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 20:24:16 +00:00
cuz
872c2b4453 Made a lot of short functions inline
git-svn-id: svn://svn.cc65.org/cc65/trunk@1456 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 20:23:41 +00:00
cuz
2e5fa9575c Add info about more functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1455 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-09 19:39:45 +00:00
cuz
13642fc6c4 Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1454 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-09 19:39:36 +00:00
cuz
e68b8160ed Added more size optimizations, separate module
git-svn-id: svn://svn.cc65.org/cc65/trunk@1453 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-08 20:56:00 +00:00
cuz
9ca21c07e0 Output an error if an invalid address is used
git-svn-id: svn://svn.cc65.org/cc65/trunk@1452 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 20:58:22 +00:00
cuz
3c31d063f7 New optimizer pass OptShift3.
Renamed CE_IsCall to CE_IsCallTo.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1451 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 20:54:01 +00:00
cuz
a0496ca53d Fixed an omission in AdjustStackOffset. Use CS_IsBasicBlock in OptStackOps.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1450 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 19:03:12 +00:00
cuz
9a62c92489 Improved implementation of OptPushPop
git-svn-id: svn://svn.cc65.org/cc65/trunk@1449 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 19:01:46 +00:00
cuz
1647c6783f New functions CS_ResetMarks, CS_ResetAllMarks and CS_IsBasicBlock.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1448 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 19:01:16 +00:00
cuz
62b3576f5f Use other representations for SCHAR_MIN, SHORT_MIN, INT_MIN and LONG_MIN.
Among other things that avoids the compiler warning "constant is long" when
using INT_MIN.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1447 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 18:59:08 +00:00
cuz
b0559a4b19 Fixed a string in the help screen
git-svn-id: svn://svn.cc65.org/cc65/trunk@1446 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 12:03:24 +00:00
cuz
6047165325 Fixed problem with earlier change
git-svn-id: svn://svn.cc65.org/cc65/trunk@1445 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-05 22:55:42 +00:00
cuz
e9da20f961 Fix codesize setting
git-svn-id: svn://svn.cc65.org/cc65/trunk@1444 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-05 22:37:36 +00:00
cuz
7ce4196829 New/changed optimizations
git-svn-id: svn://svn.cc65.org/cc65/trunk@1443 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-05 20:32:31 +00:00
cuz
3f1eba36f3 Remove the swapeax routine, it is obsolete
git-svn-id: svn://svn.cc65.org/cc65/trunk@1442 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-05 17:59:42 +00:00
cuz
e00f5ba5a0 Add tgi subdir
git-svn-id: svn://svn.cc65.org/cc65/trunk@1441 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-04 19:27:45 +00:00
cuz
bc1085997d Minor improvement of optimizations
git-svn-id: svn://svn.cc65.org/cc65/trunk@1440 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-04 19:27:15 +00:00
cuz
89e8aae7d7 Increase the size of some buffers, so we are at the assembler level able to
handle any identifiers passed from the C level.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1439 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-04 17:54:46 +00:00
cuz
8bc4863fc6 Changes from Michael Klein
git-svn-id: svn://svn.cc65.org/cc65/trunk@1438 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 20:10:10 +00:00
cuz
13f81d0377 Port plasma to the C128
git-svn-id: svn://svn.cc65.org/cc65/trunk@1437 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 19:19:25 +00:00
cuz
fc774b3006 Last change introduced a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1436 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 19:18:06 +00:00
cuz
91e26f573c Added the TGI mode table
git-svn-id: svn://svn.cc65.org/cc65/trunk@1435 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 18:19:25 +00:00
cuz
eab19873f3 Remove the ",r" spec
git-svn-id: svn://svn.cc65.org/cc65/trunk@1434 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 18:16:46 +00:00
cuz
eea95f7b64 Added tgidemo
git-svn-id: svn://svn.cc65.org/cc65/trunk@1433 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 17:36:18 +00:00
cuz
f965924c2a Ignore executables
git-svn-id: svn://svn.cc65.org/cc65/trunk@1432 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 17:36:00 +00:00
cuz
5fec8ac5c3 Don't call the driver if we don't have one loaded
git-svn-id: svn://svn.cc65.org/cc65/trunk@1431 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 13:54:42 +00:00
cuz
8b14f60e0d Removed duplicate declaration
git-svn-id: svn://svn.cc65.org/cc65/trunk@1430 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 13:28:34 +00:00
cuz
29c217b4b2 Use a #define instead of numeric value
git-svn-id: svn://svn.cc65.org/cc65/trunk@1429 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 11:20:45 +00:00
cuz
7fffd12f11 Started to add tgi text output functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1428 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 11:18:49 +00:00
cuz
2f44fb05a4 Started to add text output functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1427 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 11:18:23 +00:00
cuz
4389b0c438 Fixed a small bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1426 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 09:00:57 +00:00
cuz
f5243e514c Fixed optimizer bug in or/xor
git-svn-id: svn://svn.cc65.org/cc65/trunk@1425 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-02 22:21:42 +00:00
cuz
b4326d1930 Place all declarations that are local to a function into the local function
scope. Apart from some other advantages, this works around a bug where having
an external identifier in global scope and using an "extern" declaration for
exactly the same identifier in a function did not work, because the assembler
refused to export and import one and the same identifier. Since the import
now imports into local scope, both identifiers are distinct for the assembler
and the (valid) C code works.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1424 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-02 13:00:04 +00:00
cuz
980c17daef Allow more flexible numeric flag pragma arguments
git-svn-id: svn://svn.cc65.org/cc65/trunk@1423 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-01 08:13:04 +00:00
cuz
65fa99f65e Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1422 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-30 21:58:39 +00:00
cuz
77132165ce File had DOS line endings
git-svn-id: svn://svn.cc65.org/cc65/trunk@1421 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-30 21:38:07 +00:00
cuz
1f20202239 Ignore also cr's on input. This allows to compile sources with DOS/Windows
line separators on unix systems.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1419 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-30 19:32:33 +00:00
cuz
15d2c8fc83 Removed debug code
git-svn-id: svn://svn.cc65.org/cc65/trunk@1418 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-30 19:05:37 +00:00
cuz
d92676ef60 Add SB_GetNumber to scanstrbuf.c.
Rewrite of CharMapPragma in pragma.c
Fixed bug in scanner.c: Invalid octal constants containing the numbers 8
and 9 were accepted by the compiler.
Moved SignExtendChar from scanner.c to datatype.c.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1416 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-30 18:46:08 +00:00
cuz
2df5db1f04 Call StrBuf destructors
git-svn-id: svn://svn.cc65.org/cc65/trunk@1415 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-29 21:15:02 +00:00
cuz
e880ac6059 Use the new StrBuf features
git-svn-id: svn://svn.cc65.org/cc65/trunk@1414 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-29 21:13:09 +00:00
cuz
ea50befaac Redoing the pragma stuff
git-svn-id: svn://svn.cc65.org/cc65/trunk@1413 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-29 21:09:47 +00:00
cuz
092f10862e New function SB_Skip
git-svn-id: svn://svn.cc65.org/cc65/trunk@1412 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-29 19:55:38 +00:00
cuz
0e4493f075 Add a user index to class StrBuf
git-svn-id: svn://svn.cc65.org/cc65/trunk@1411 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-29 19:49:55 +00:00
cuz
689202057c Fixed the result of the % operator for longs
git-svn-id: svn://svn.cc65.org/cc65/trunk@1409 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-28 19:55:19 +00:00
cuz
3aab67401e Fixed the result of the % operator for ints
git-svn-id: svn://svn.cc65.org/cc65/trunk@1408 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-28 19:41:00 +00:00