Brent Fulgham writes:
I was curious if the Ciao Prolog team had ever considered building a native-mode compiler similar to the GNU Prolog compiler? This would seem to have some advantages in terms of executable size and speed.
Was this ruled out for any technical reasons?
Yes, of course it has all the advantages you mention. It is not that it has been "ruled out"; rather, it is "not yet implemented". Historically, we started with an implementation based on a bytecode interpreter, and we have been using it so far. But a compiler based on translation to C is on the works, although it is not finished yet (it is not even in alpha state).
As Daniel Diaz, the main GNU Prolog's implementor, can say, a native compiler is a non-trivial task, and maintaining different back-ends for different architectures (say, i386, SPARC, MIPS, Power PC...) easily becomes a lot of work. That is one of the reasons why we chose to translate to C.
MCL
___________________________________________ ¡Hay, qué miedo saber tanto! (Lola Flores). ============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------