From: Dan H. <da...@da...> - 2024-06-11 20:30:51
|
On Tue, 11 Jun 2024 20:53:11 +0200 Miro Kropáček <mir...@gm...> wrote: > Hi, > > just wanted to share something with you: even having 1900 MB of TT RAM in > Aranym didn't allow me to natively bootstrap gcc 13.3.0. FreeMiNT / mintlib > started to complain at the 2047 mark (mallocs failing very early on) and > IIRC 2 GiB is the limit of our TOS API anyway. > > The 1900 MB setup so-so passed the first (stage1) linking of 'cc1' but > finally failed on 'cc1plus' with being out of memory. So actually it seems > it was the linker's fault, not gcc's (for stage1 compilation I used my > native gcc 13.3.0 builds built by the cross compiler). > > So I guess that's it. There's no way to build gcc/g++ on Atari anymore. isn't it possible to reduce the amount of debuginfo put into the object files? If "-g" is used to compile gcc, can you try with "-g1" (or even with "-g0")? gcc is now a C++ application and it adds huge amounts of debuginfo data. And in theory passing "-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" to the linker flags might also help. Fighting with OOM is not a uncommon issue in Linux distros on 32-bit platforms these days. Dan |