Commit Graph

  • b9b6657c29 Adjusted language and TABs. ol.sc 2011-12-26 23:50:55 +00:00
  • d810ed97d2 Redesigned GEOS VLIR linking: - No more post-linking with resource compiler, rather ld65 directly creates the VLIR CVT file. - No more dynamic linker config creation, rather the built-in 'geos' config is usable both for SEQ CVT and VLIR CVT files. ol.sc 2011-12-26 22:54:04 +00:00
  • 1947d15c48 New include file for address alignment. uz 2011-12-26 22:38:06 +00:00
  • 2947c5f0ae changed wording of the message silverdr 2011-12-26 16:50:23 +00:00
  • f8c9188cc6 Minor formatting adjustment. ol.sc 2011-12-19 14:49:40 +00:00
  • e8174de0f1 Fixed an error introduced in revision 4427: The list of 65816 instructions contained two items less than the counter said (because in 4427 two were deleted without adjusting the counter). Depending on the compilers implementation of bsearch(), some of the 65826 instructions were not found when searching the table. uz 2011-12-11 23:40:53 +00:00
  • 0d04730ddf Documented the .SET operator that has been available for about 6 years now :-) uz 2011-12-10 12:09:46 +00:00
  • 494b0619d7 Added more sample for the inline assembler. Contributed by Steffen Görzig. uz 2011-12-07 21:08:14 +00:00
  • 5449f21d9f When generating the dependency file, escape spaces in file names. uz 2011-12-05 21:32:59 +00:00
  • e23d0e511c Describe the atari macro package. uz 2011-12-02 17:34:19 +00:00
  • d1e7773245 Adjustments to recent adding of get/set prefix to tgi function names. ol.sc 2011-11-29 21:36:42 +00:00
  • 74eb60df41 Some small documentation updates by Stefan Haubenthal. uz 2011-11-07 21:27:16 +00:00
  • 49c457f518 Disallow __asm__ on global level. uz 2011-11-07 21:25:20 +00:00
  • eef45199d5 Remove ldiv_t - it should only be in stdlib.h. Reported by Marc Rintsch. uz 2011-11-05 19:49:34 +00:00
  • ab83d5cd78 Fixed an internal error caused by muddling through after an error occurred and trying to add a duplicate identifier into the symbol table. uz 2011-09-18 20:36:19 +00:00
  • a9de1a9e89 Fixed an error: The LINE function mistakenly enabled the BASIC ROM. (Greg King) uz 2011-09-13 18:50:29 +00:00
  • 6a716ae43b Fixed an error: The output file shouldn't be opened in binary mode (thefox). uz 2011-09-04 10:41:43 +00:00
  • 76e9fc8c65 Small fix for an error message. uz 2011-09-03 19:11:12 +00:00
  • 5050157eda Make the type of a C symbol available. uz 2011-09-01 20:53:42 +00:00
  • 3ec4b296ba Added functions to access the c symbols in the debug info file. uz 2011-09-01 20:51:07 +00:00
  • 8504f42497 Postprocess and cross-reference C symbol infos. uz 2011-09-01 10:21:25 +00:00
  • e63dcb46f1 Fixed an error: Symbol references for csyms were output as local, not global ids. uz 2011-09-01 10:00:31 +00:00
  • d1abb7e808 New flag that tells if the HLL symbol has an asm symbol attached. uz 2011-08-31 21:00:20 +00:00
  • 8fc851b338 Write out global symbols to the debug file. Added some fixes for unusual situations (extern symbols without attached import, because the import wasn't referenced and therefore removed by the assembler). uz 2011-08-31 20:48:40 +00:00
  • f204ec956a Parse csym lines in the debug info file. No api functions til now. uz 2011-08-30 13:19:28 +00:00
  • 1157cff1bd Validate the type passed in .dbg statements at least loosely. uz 2011-08-30 13:18:50 +00:00
  • b4afe56ef1 For now use the void type for all debug symbols to avoid errors in the backends. uz 2011-08-30 13:09:34 +00:00
  • 2438497e9f Shorten "extern" -> "ext". uz 2011-08-30 13:04:08 +00:00
  • aaa21c6417 More work on high level language debug symbols. They are now passed correctly via the object files to the linker and written to the debug info file. uz 2011-08-30 11:42:26 +00:00
  • 2f82cb4fb8 The geos resource compiler was still called by its old name (Greg King). uz 2011-08-30 09:38:53 +00:00
  • 060cfe66e0 Renamed hldbgsym -> hlldbgsym. uz 2011-08-29 20:37:28 +00:00
  • c2bf1b9ba4 Some code cleanup. uz 2011-08-29 20:30:57 +00:00
  • eee6068029 Write the high level debug info to the object file. uz 2011-08-29 20:02:06 +00:00
  • 314476de27 Added an offset field to the high level language symbol definition. uz 2011-08-29 18:55:29 +00:00
  • 305cf64d40 Worked on high level language symbol info. uz 2011-08-29 18:55:03 +00:00
  • 2e7afb6a8d Added a module for high level language debug symbols. uz 2011-08-28 20:01:51 +00:00
  • 548a29e076 Added output of types. uz 2011-08-28 15:10:43 +00:00
  • 534c630a23 Fixed the layout for the span output. uz 2011-08-28 14:44:41 +00:00
  • 12035b910e Added span output. uz 2011-08-26 20:03:11 +00:00
  • 6b8efa8e9b Add a (currently empty) type string to the debug info for symbols and functions. uz 2011-08-26 13:01:29 +00:00
  • 2fbebd25cf Started to add debug infos for C functions and symbols. uz 2011-08-26 12:05:00 +00:00
  • c2d859b9f3 Fix a C89 incompatibility (Stefan Haubenthal). uz 2011-08-26 10:05:28 +00:00
  • 7c96984473 Pointers passed outside the module should be const. uz 2011-08-26 10:05:08 +00:00
  • 557b077530 Added code to parse type strings and convert them into a set of cc65_typedata structures. Added cc65_type_byid and cc65_free_typedata (a dummy). uz 2011-08-25 18:59:25 +00:00
  • 3e84a2bd93 Fix type string for .ADDR and .FARADDR. uz 2011-08-23 18:05:31 +00:00
  • 262ed5db8b Fixed a bug: Never remember a pointer to a string buffer, since it becomes invalid when the string buffer gets resized. uz 2011-08-23 18:04:25 +00:00
  • d225866449 Renamed GT_GetArraySize to GT_GetElementCount. uz 2011-08-23 18:01:23 +00:00
  • 25171465d3 Implement variable sized element count for arrays. uz 2011-08-23 16:15:41 +00:00
  • 1e0ab407cd Added the LineInfo count to the info line of the debug info file. This allows the debug info module to reduce memory usage. uz 2011-08-22 21:52:40 +00:00
  • 3b61ee2f5a Track types, parse the extended debug info format with "type" lines. uz 2011-08-22 19:37:10 +00:00
  • 374b106b06 Maintain the types as separate indexed items in the debug info file. uz 2011-08-22 18:22:45 +00:00
  • b064002266 Added a tpool module that implements a global pool for generic types, so we can merge duplicate ones and assign them global ids. uz 2011-08-22 17:53:00 +00:00
  • fda7934e68 Do not resolve the lists of spans for LineInfos and Scopes, but keep them as ids. This way, we can delay loading spans until we know that we definitely need an object file. Did some restructuring for writing of span lists to the debug info file. uz 2011-08-22 17:36:19 +00:00
  • ecfba0c9b0 Fix a problem with the generated array sizes for span types (they were wrong). As an optimization, don't create an array for just a few elements. uz 2011-08-21 20:50:39 +00:00
  • 4e43a293c6 Parse (but ignore) type information for spans. uz 2011-08-21 20:18:27 +00:00
  • 660df16d08 Write out type information for spans to the debug info file. uz 2011-08-21 20:18:09 +00:00
  • b88dc209fc Change prototype for GT_AsString to make it easier usable. uz 2011-08-21 20:17:43 +00:00
  • 6e47980eb7 Generate span types for .ADDR, .BYTE, .DBYT, .FARADDR and .WORD. uz 2011-08-21 20:17:22 +00:00
  • 6583320b79 Added GT_AsString(). uz 2011-08-21 20:04:27 +00:00
  • cc486bb4f5 Don't remember types for spans if no debug info is requested. uz 2011-08-21 19:46:47 +00:00
  • 913db79017 Add an optional type to a span. uz 2011-08-21 19:44:02 +00:00
  • f2de523b5d The string with index zero is the first string in the string pool. uz 2011-08-21 19:35:51 +00:00
  • ac2b837285 Some work on the generic type module. uz 2011-08-21 19:27:03 +00:00
  • 358ccf236e Write spans out in a separate object file section. This allows to merge duplicate spans in an object file and more extensions to come. uz 2011-08-21 19:08:23 +00:00
  • 37ac033370 Added CollReplaceExpand. uz 2011-08-21 17:30:25 +00:00
  • d0d550be66 Fix errors in tracking the number of items in the table. Added function HT_GetCount to retrieve the number of items. uz 2011-08-21 16:56:40 +00:00
  • ae98f4bcd8 Fix a problem with macro expansion count in line infos for macros. uz 2011-08-21 16:23:38 +00:00
  • 6cdac5eb4c Fixed a bug in SP_Add. uz 2011-08-21 16:08:52 +00:00
  • 7fe0958b91 The ...Entry functions from the hashtab module have been renamed. uz 2011-08-21 13:35:36 +00:00
  • 58ffb47250 The ..Entry functions from the hashtable module have been renamed. uz 2011-08-21 13:33:06 +00:00
  • 96ce71ad5f Removed the functions that work on HashNodes since they are mostly useless now. uz 2011-08-21 13:31:30 +00:00
  • 77110021ab Implementation of StringPool has changed. uz 2011-08-21 13:21:11 +00:00
  • 4461988fd1 Implementation of SP_GetCount has been missing. uz 2011-08-21 13:20:48 +00:00
  • bf889a1928 Implementation of StringPool has changed. uz 2011-08-21 13:16:14 +00:00
  • e1a861f0a5 Use the hashtab to implement the string pool hash table. uz 2011-08-21 13:15:52 +00:00
  • f3b49b57bd Add a gentype.c module that contains GT_FromStrBuf. uz 2011-08-20 22:13:58 +00:00
  • 85584fb404 Small change for better hash table distribution. uz 2011-08-20 21:53:22 +00:00
  • ef412bc22c Added a new gentype module for generic (not language dependent) types. uz 2011-08-20 20:16:13 +00:00
  • 78551ba832 Read segment sizes as var, no longer as 32 bit values. uz 2011-08-19 20:58:14 +00:00
  • 6a01a3407a Read the segment size as var, not as 32 bit value. uz 2011-08-19 20:56:44 +00:00
  • 1e20489ee1 Renamed some stuff. Write out the segment size as var, not 32 bit. uz 2011-08-19 20:55:48 +00:00
  • 607aa871e6 Last fix was wrong. The problem wasn't in the struct code but in SymLeaveLevel calling CloseSpans, which does not only close spans but might also add some, in which case the scope became another size. uz 2011-08-19 15:24:11 +00:00
  • ce85b303c3 Fixed a bug: The size of a scope is now recorded for all scopes in SymLeaveLevel. Doing so also in the code for .STRUCT/.UNION will try to enter the .size symbol twice. uz 2011-08-19 15:06:51 +00:00
  • 7ee90fb21b Added cc65_line_byspan and cc65_scope_byspan. uz 2011-08-19 14:39:11 +00:00
  • 7fa197337b Add the number of attached lines and scopes to a span. uz 2011-08-19 14:31:03 +00:00
  • bc0f3fd99b Removed some debug output. uz 2011-08-19 11:30:31 +00:00
  • 61f3e1dce3 Allow more space for symbol names. uz 2011-08-19 11:22:36 +00:00
  • aff6d02c43 Remove CollConstAt. Let CollAt and CollAtUnchecked take const pointers to collections. Use const pointers in many places. Some other cleanups. uz 2011-08-19 11:21:22 +00:00
  • 88774521a3 Use CollTransfer where possible. uz 2011-08-19 11:06:52 +00:00
  • 189a9bfb38 New function CollTransfer. Change CollAt and CollAtUnchecked to take a const Collection pointer instead of just a Collection pointer. This makes more sense, since the functions do not change the collection. uz 2011-08-19 11:01:01 +00:00
  • 307b8d88c3 Reenable optimizations. uz 2011-08-19 10:46:49 +00:00
  • 68db31c53b Changed data type used to store line numbers from unsigned long to unsigned. uz 2011-08-19 10:44:45 +00:00
  • 5f0e6dd7e9 Output all positions in a file for unresolved externals. uz 2011-08-19 10:40:11 +00:00
  • c71d236da6 Enable optimizations. uz 2011-08-19 10:05:13 +00:00
  • 1527d26e91 Allow to display symbols and line infos for symbols. uz 2011-08-18 20:34:31 +00:00
  • 3a079ff332 Added cc65_line_bysymdef and cc65_line_bysymref. uz 2011-08-18 20:11:27 +00:00
  • 69ebab6064 Parse additional def and ref keywords for symbols. uz 2011-08-18 16:57:51 +00:00
  • 2a038ffef9 Output line info for symbol definition and references. uz 2011-08-18 16:55:53 +00:00
  • 1797235794 Read and manage additional line information for symbols. uz 2011-08-18 16:27:18 +00:00
  • f8e5463278 Adapt to changed information in the object files. uz 2011-08-18 16:26:44 +00:00