From: Philipp K. K. <pk...@sp...> - 2024-08-17 16:40:49
|
Am 16.08.24 um 11:10 schrieb 月明风清 via sdcc-devel: > > Acording to my work requirement, a small 8-bit mcu with 9bit RAM addr > 13bit ROM addr,without banking. > I use SDCC and gputils for it. I have tried a lot of. > Recently, I did 2 LTO pass in gputils's linker: > 1) remove unused global variable (initialized or uninitialized). > 2) Reuse temporary ram variable accross different functions. > In this pass , I construct the call-graph with main、intterrupt0、 > interrupt1 as the root. when two functions are in one call-graph, they > can share compiler allocated global ram variables. > Great, it works. Sounds useful, though the SDCC pic ports are unmaintained. Did you submit your work to upstream gputils, e.g. via https://sourceforge.net/p/gputils/patches/? Philipp |