From: Oleg E. <ole...@t-...> - 2024-08-16 10:12:56
|
On Fri, 2024-08-16 at 17:10 +0800, 月明风清 via sdcc-devel wrote: > > 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. > > Wow, congratulations. I wish we had this working for other backends of SDCC. Best regards, Oleg Endo |