MO_WriteBarrier and PowerPC (NCG)
Karel Gardas
karel.gardas at centrum.cz
Thu Jan 19 07:24:14 CET 2012
On 01/18/12 11:13 PM, Gabor Greif wrote:
> b) Sub-architecture (ArchPPC e500)
> elegant, but more work
For ARM we're using something similar (see Platform.hs) as its elegant
and whole GHC code would like to get rid of platform specific #ifdefs
and move platform specific decision into Haskell. Currently it's of
nearly no use except that it passes correct vector coprocessor
command-line to the LLVM.
Also nice thing is that it's written into GHC settings file and even
this settings file is generated from configure so you may do some
configure/shell hackery to support e500, save it to the file and GHC
will generate e500 code then -- but as you wrote: elegant, but more
work, but IMHO just a little bit which is well overweighted by having
more elegant code...
Anyway, don't take this as any recommendation, I'm not at this position
to recommend anything w.r.t. GHC.
Karel
More information about the Cvs-ghc
mailing list