# # # README - gcc crosscompiler patch for PDP 11 # # Author: Diane Neisius # # IMPORTANT NOTE: this patch doesn't remove the bug which causes the libgcc build failure. You have to supply a working lib for yourself. Installation: ------------- This patch removes the buggy code generation for logical AND ("&" C operator). As a replacement, you must include appropriate AND functions into your pdp11 libc. You may take my version (file and.s of this package) or write your own. Patch gcc by: - unpack your gcc-core-4.3.3.tar.gz to some source directory - replace the original file "pdp11.md" in directory /gcc/config/pdp11/ by the fixed one from this package. - build your pdp11 gcc compiler the normal way. I did it this way: /configure --target=pdp11-dec-bsd --disable-nls --without-headers --enable-languages=c make all-gcc make install-gcc Remarks: -------- I used gcc 4.3.3 and binutils 2.19. Maybe the patch also works for other versions and other options, I tried just the ones mentioned above. Try at own risk. Libc functions I took from the Xinu source which is stuff I compile for pdp11. So, I could get it working without libgcc. With some minor modifications, I got demo.c program and libsa.a library of the Xinu source running on my real old PDP-11/03 which proves the patched gcc works. Have fun! ~Diane.