__General cross-compiler__
A complete cross-compiler can be setup easily. For example:
$ cd binutils-2.18
$ ./configure --target=mips-netbsdelf
$ make&& make install
$ cd ../pcc
$ ./configure --target=mips-netbsdelf
$ make&& make install
The compiler from the above example is called /usr/local/bin/mips-netbsdelf-pcc.
Copying the header files from the target machine into /usr/local/mips-netbsdelf/include and the libraries into /usr/local/mips-netbsdelf/lib is sufficient to build binaries.
It's possible for multiple cross-compilers to exist on the host system at the same time (which was the motivation for doing this!).
__Cross-compiler to Microsoft Windows__
To develop a cross-compiler for Microsoft Windows:
$ cd binutils-2.18
$ ./configure --target=i386-pe
$ make&& make install
$ cd ../pcc
$ ./configure --target=i386-pe
$ make&& make install
You will need header files and libraries for Windows. These files are maintained by the MinGW project. You can find pcc-supported source and binary tarballs of these libraries [on the pcc website](http://pcc.ludd.ltu.se/ftp/pub/win32/). The libraries [writing services](http://essaywritingservices.org/index.php) install into the /usr/local/i386-pe/ directory which will work with the the pcc compiler [editing services](http://editing-services.org/index.php) and the gnu assembler using the build instructions above. The w32api and the mingw-runtime sources should compile with the pcc compiler.
Powered by rcshistory.cgi 0.3