<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [clean-list] Fwd: Building Clean 2.2 on
PS3</title></head><body>
<div><br></div>
<div>Michael Hogan wrote:</div>
<blockquote type="cite" cite>I managed to get a &quot;clean&quot;
build of the source in the &quot;CodeGenerator&quot; folder.&nbsp; I'm
sure that there are plenty of additional hurdles to getting even basic
PPC output from the code generator, but I suppose that a clean compile
is the first step.&nbsp; I did find it necessary to stub out the<b>
initialize_toc</b> function, but that seemed to be the only real
hack.</blockquote>
<div><br></div>
<div>Compiling a code generator that generates 32 bit PPC code should
not be</div>
<div>that difficult, because an older version of Clean was available
for</div>
<div>PPC linux:</div>
<div><br></div>
<div>http://clean.cs.ru.nl/download/Clean13/mklinux/Clean131.tar.gz</div
>
<div><br></div>
<blockquote type="cite" cite>One observation on the source code -- the
conditional compile logic interprets -DPOWER as being synonomous with
&quot;compiling on a Mac with a PPC&quot;, which causes some
confusion, and possibly causes some yet-to-be-identified errors in the
pre-processing.</blockquote>
<div><br></div>
<div>The first PPC platform that Clean was ported to was a Mac, and
POWER was</div>
<div>defined for that platform. When the compiler was later ported to
PPC linux,</div>
<div>the symbol G_POWER was added, for generating PowerPC code.</div>
<div><br></div>
<div>Clean has not been ported to any 64 bit PPC platform. Porting the
current</div>
<div>version of Clean to a 32 bit PPC linux platform is probably not
much</div>
<div>work.</div>
<div><br></div>
<div>Kind regards,</div>
<div><br></div>
<div>John van Groningen</div>
</body>
</html>