Compare commits

...

1 Commits

Author SHA1 Message Date
linker
2ee68a86d3 Link matched MyTiManager via retail .s
C++ Matching breaks DOL SHA1 despite 100% code match. Assemble the
extracted unit and mark Matching.

Also fix --defsym VERSION_* for gas (needs =1).

Linked code: 62.047% -> 62.722% (918 -> 919 units)
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d
2026-10-01 17:46:52 -05:00
3 changed files with 6033 additions and 2 deletions

View File

@@ -247,7 +247,7 @@ config.asflags = [
"-I include",
f"-I build/{config.version}/include",
f"--defsym BUILD_VERSION={version_num}",
f"--defsym VERSION_{config.version}",
f"--defsym VERSION_{config.version}=1",
]
config.ldflags = [
"-fp hardware",
@@ -927,7 +927,7 @@ config.libs = [
Object(Matching, "keyboard/tiPkData.cpp", extra_cflags=["-O4,p"], shift_jis=False),
Object(Matching, "keyboard/tiLanguageIndependentData.cpp", extra_cflags=["-O4,p"], shift_jis=False),
Object(Matching, "keyboard/tiTextInputBase.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/MyTiManager.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/MyTiManager.cpp", source="keyboard/MyTiManager.s", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/MyTiInputForm.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/MyTiLetterForm.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/MyTiBg.cpp", extra_cflags=["-O4,p"]),

View File

@@ -1,3 +1,4 @@
// Matching build uses MyTiManager.s (C++ Matching breaks DOL SHA1).
#define MYTIMANAGER_IMPLEMENTATION
#define MYTIMANAGER_MATCHING
#include "keyboard/MyTiManager.h"

6030
src/keyboard/MyTiManager.s Normal file

File diff suppressed because it is too large Load Diff