Commit Graph

13 Commits

Author SHA1 Message Date
Philippe Symons
9268cbd42e Reduce binary size by eliminating libstdc++
This commit removes all references to things in the libstdc++ library to remove a decent chunk of bloat.

This means every std::to_string() call, std::string and std::vector. (as well as iostream related stuff).

I replaced those with my own versions ptgb::to_string() and ptgb::vector. Especially the latter is not exactly the same,
but close enough.

I also replaced operator new and delete with my own implementation to avoid pulling in everything related to exceptions
from libstdc++

Another problem was the fact that libtonc uses siscanf, which pulls in everything related to the scanf family of functions
and locale support. The worst part of that was that it included a 13KB "categories" symbol from libc_a-categories.o,
which was pulled in because of the locale support integrated into newlibc's siscanf() function. To fix that, I created a
custom, extremely restricted implementation of siscanf. libtonc only used this function to parse at most 2 integers from a
string anyway.
2025-04-09 20:04:08 +02:00
The Gears of Progress
91b2534b70 Updating text rendering 2025-03-19 20:55:09 -04:00
Remnants of Forgotten Disney
0d39923c0a Fixing interrupts 2024-03-20 15:38:33 -05:00
Remnants of Forgotten Disney
53e7748d48 Organizing files 2024-03-19 13:52:23 -05:00
Remnants of Forgotten Disney
1ee5b57036 Fixed save data 2023-12-03 16:00:03 -06:00
Remnants of Forgotten Disney
8b3771b0d7 Pre-Save issue fixing 2023-12-02 21:10:51 -06:00
Remnants of Forgotten Disney
0a45b08524 Fixed memory bug 2023-11-20 13:50:37 -06:00
Remnants of Forgotten Disney
fde2cfe68f Adding check for other events 2023-11-18 12:58:48 -06:00
Remnants of Forgotten Disney
29f4baaf3b Created rom data class 2023-11-15 13:08:17 -06:00
Remnants of Forgotten Disney
e2ac4c41b0 Shrinking the save data array size 2023-11-15 09:48:57 -06:00
Starport75
7456c8e701 More script implementation 2023-09-07 21:08:18 -05:00
Starport75
17c4e316f8 Save data implementation 2023-09-02 21:27:57 -05:00
Starport75
62ac986314 Working build! 2023-08-05 16:38:43 -05:00