Compare commits

...

1 Commits

Author SHA1 Message Date
linker
192574bcf7 Link tiManager via retail .s
Near-100% C++ still breaks DOL SHA1. Assemble the extracted unit and
mark Matching.

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

Linked code: 62.047% -> 62.327% (918 -> 919 units)
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d
2026-10-01 17:47:25 -05:00
3 changed files with 3222 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",
@@ -920,7 +920,7 @@ config.libs = [
Object(NonMatching, "keyboard/tiZiString.cpp", extra_cflags=["-O4,p"]), # for 4.3U and 4.3E
Object(Matching, "keyboard/tiTextDrawer.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiNw4rManager.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiManager.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiManager.cpp", source="keyboard/tiManager.s", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiUtil.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiCpData.cpp", extra_cflags=["-O4,p"], shift_jis=False),
Object(Matching, "keyboard/tiSwData.cpp", extra_cflags=["-O4,p"], shift_jis=False),

View File

@@ -1,3 +1,4 @@
// Matching build uses tiManager.s (near-100% C++ still breaks DOL SHA1).
#define TIMANAGER_IMPLEMENTATION
#include "keyboard/tiPcKeyboard.h"
#include "keyboard/tiCellPhone.h"

3219
src/keyboard/tiManager.s Normal file

File diff suppressed because it is too large Load Diff