Re: Compiler design reference sought

"Chun Tian (binghe)" <[email protected]>
Newsgroups gmane.lisp.gcl.devel
Organization The Australian National University
Message-ID <[email protected]>
Sorry, I should really try again before sending the last email. The
"tangle0.lisp" I extracted, can indeed be compiled by GCL 2.7.0 in a few
seconds:

>(compile-file "tangle0.lisp")

;; Compiling tangle0.lisp.
;; End of Pass 1.
;; End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
;; Finished compiling /Users/binghe/Lisp/AXIOM/axiom-code/books/tangle0.o.
#P"/Users/binghe/Lisp/AXIOM/axiom-code/books/tangle0.o"
NIL
NIL

P.S. The full "tangle.lisp" from AXIOM source code, when compiled by GCL
2.7.0, is really low. But now I don't have confidence to say anything
like "infinite loop" now. Perhaps it just needs some more time, e.g. 10
minutes.

--Chun

On 07/02/24 20:34, Chun Tian (binghe) wrote:
> Hi Camm,
> 
> Is it possible that the "iteration" in the GCL compiler that you
> mentioned, may not terminate (i.e. falling into infinite loops) for
> certain inputs?
> 
> The attached Lisp code is the very beginning part of AXIOM's "tangle"
> utility for extracting code from LaTeX files. In my machine, GCL 2.7.0
> compiler seems take forever to compile the (only) Lisp function in it.
> 
> My guess is that, in the function, many other Lisp functions are
> referenced, but these functions are to be defined at later position of
> the code, and thus their type information is unknown. GCL 2.6.x can
> compile this file any way, but the current GCL 2.7.0 compiler seems
> failing into infinite loops.
> 
> Regards,
> 
> Chun TIAN
> 
> On 05/02/24 02:27, Camm Maguire wrote:
>> Greetings!  Over the years, various theoretical papers on algorithms for
>> Common Lisp utilities have been very helpful in GCL development,
>> e.g. Baker's paper on the type system.
>>
>> I am looking for a reference on compiler design algorithms which handle
>> type inferencing most efficiently.  Right now we iterate on conflict,
>> and I think this is too slow.  Pointers most appreciated!
>>
>> Take care,
>>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEES+aY+4laoC0TwmVKFUkg2jrYR8gFAmXDUDAACgkQFUkg2jrY
R8jIIg//SfaNKeNi2paRv2k1Az74XWziYBZ0jQ0BNoTAppt6tU0k9utHovjyeMaN
JzOPT1dSz097d0MBurlY9wLigQRRk6JnLf6PtdxZgrLkQcqAneosVjH0ammfWrhO
aEwEil6mLqnCCYKxJM+8aQrCrdsBHHWfU41xvptZMh8+NYqJlN7iMPTrh+7K3zli
6hrHMkfPeBlTjCA6JWpkJqZ/wToOrOPcLT/6V/a4BrHAV4fq61/YXZ2tE/YBO08Y
WEEnjS0bpAMR3yWhn6YgnguOSKg1HhZmvtNqfCa+dhvexzoCTBOxgjJNhNWWm+Jm
E705cW46Xc+AYn/SVWT6qTKhhEWbJn0kP9sqPRbkf1BzPCegKBJU9sei/X3LS5KH
FR1RtnpKRH891oAgCF1oS+4t3+JRfDFO9ThKBybmc7rVe153vFBoCUidcj3cJ/DJ
p4NYHk4EjyDeclImmB69BWRbIvYxkBvZB2XZmqwWvQJqtkidiDshA4wQ8fkc6ArW
i7XqIlltDcU1ITUQe4Ow0tVaEgcjikHTpcjrir2DLQpvqW6dn45oJvXWHUTVbBkV
1g99y+Lkcq5DBCz9xc/FSOIvp7SdKyGV6sS4AKISAxg54cVEXXjfDKt6I2aHREHI
42cFyGfD/nEXSnYw9+Rhirgzs2EgbHqp5nEEWGZfpWhhQP8+K9k=
=F9em
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.