On Fri, Feb 28, 2020 at 07:40:22PM +0100, Kurt Pagani wrote: > On 28.02.2020 17:58, Waldek Hebisch wrote: > > On Thu, Feb 27, 2020 at 10:41:32PM +0100, Kurt Pagani wrote: > >> > >> The second issue concerns big files (compile or read doesn't matter): > >> > >> > >> --ECL > >> -- (1) -> )r bigfile > >> -- > >> -- >> System error: > >> -- C-STACK overflow at size 1042432. Stack can probably be resized. > >> -- Proceed with caution. > >> > >> --SBCL > >> -- >> System error: > >> -- Control stack exhausted (no more space for function call frames). > >> -- This is probably due to heavily nested or infinitely recursive function > >> -- calls, or a tail call that SBCL cannot or has not optimized away. > >> -- > >> -- PROCEED WITH CAUTION. > >> > >> Example: > >> - http://fricas-wiki.math.uni.wroc.pl/AWAIC > > > > That one looks like sbcl bug: stack overflow is during lisp compilation. > > Yes, ECL and ABCL the same/similar.
With ECL (using current stable release, that is 16.1.3) compilation worked for me. It took long time, 180s for spad and List to C compilation and more than 10 minutes for C compilation. And gcc produced message that it run out of storage for variable tracking but eventually produced object file. > > > >> - attached bigfile.input (mostly comments, ~30k lines) > >> Should be fixed now. > The strange thing is that the (compiled) AWAIC example > (http://fricas-wiki.math.uni.wroc.pl/AWAIC) worked some years ago. > Unfortunately > I can't remember which Fricas version. I found one old version only (1.2.7, > 2016) and this one is able to read the bigile but cannot compile the AWAIC > either. AFAICS this is mostly Lisp compiler thing. Compared to older version sbcl significantly increased it memory use during compilation. One possible option may be to lower optimization settings in sbcl to profer compilation speed over code speed (after all, this code is executed once per session...). -- Waldek Hebisch -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/20200229141105.GA31425%40math.uni.wroc.pl.
