#989: Windows "native" port
----------------------+-----------------------------------------------------
 Reporter:  simonmar  |          Owner:                    
     Type:  task      |         Status:  new               
 Priority:  normal    |      Milestone:  _|_               
Component:  Compiler  |        Version:                    
 Severity:  normal    |     Resolution:                    
 Keywords:            |     Difficulty:  Difficult (1 week)
 Testcase:  N/A       |   Architecture:  x86               
       Os:  Windows   |  
----------------------+-----------------------------------------------------
Changes (by sharpe):

  * version:  6.7 =>

Comment:

 Win port of gmp at [http://fp.gladman.plus.com/computing/gmp4win.htm],
 perhaps move gmp out of dist altogether and only link w/ .so or .dll?

 Support utils (cgprof, hp2ps,.. etc.) need minor modifications to build
 and keep cl from choking on e.g. some exotic C macros (and simple ones
 such as macros suffixed with semi-colon).

 RTS is more challenging as it contains a mix of C89, C99, C++ code which
 gcc happily compiles; minor inconsistencies (STATIC_INLINE here, static
 inline there), gcc extensions not supported by cl, inline assembly, void
 pointer arithmetic etc.

 Adapting the build system is pretty terrible (esp. proper
 autoconf,libtool), custom make rules, custom config.h, custom mk files and
 some custom Makefile.win32 do the trick but are more difficult to maintain
 in the future (cmake?).

 Used winsock is deprecated, also i will need to look into signal handling
 as this doesn't behave properly (mingw?).

 Registered boot attempts fail with alignment errors, as of yet not
 resolved (->mix gcc/cl?); will continue on unregistered 6.4 series builds.

 Haven't got to real low-level stuff, YASM seems ok and is easily
 integrated w/ VS2008.

 prepping the environment is pretty easy once you've got around the unixy
 build system
 (include vcvars variables PATH,LIBPATH,INCLUDE etc.), btw utils/pwd does
 not work in mingw using series 6.8.2 (easily resolved).

 merging changes will be another fun item.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/989#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to