pas2CTutorial.wiki
changeset 217 78f6f4e9f358
parent 214 2c30f10b37a9
child 218 8c01e80cf77f
equal deleted inserted replaced
216:6f7c0c72bd12 217:78f6f4e9f358
     6 this page is a stub
     6 this page is a stub
     7 
     7 
     8 
     8 
     9 = Details =
     9 = Details =
    10 
    10 
    11 ghci (from the tools folder)
    11 Run from the `tools` folder
       
    12 {{{
       
    13 ghci
    12 :load pas2c.hs
    14 :load pas2c.hs
    13 pas2C "hwengine" (or any other module)
    15 pas2C "hwengine"
       
    16 }}}
    14 
    17 
    15 then use clang to compile
    18 You can replace "hwengine" with any other module.
       
    19 
       
    20 Every pas file will be converted to a .c/.h version in the `hedgewars` folder. In case no output is produced something has gone wrong.
       
    21 
       
    22 Use `clang` to compile, `gcc` compatibility is not yet achieved. We are curious to hear about `icc` and `msvc`.