jan@swivax.UUCP (Jan Wielemaker) (04/30/89)
I finally got my nice official P-H distribution of MINIX for the ST (takes them 4 weeks). The installation worked fine, but when I started using the compiler on programs that worked fine on PC-MINIX trouble began: I use an editor called `thief' (written by Richard O'Keefe). This editor is small, fast and powerfull and has been ported to PDP-11, VAX, Gould, SUN and MINIX for the PC (last 3 by me, it never costed more than a day). On ST-MINIX it compiled fine (no warnings). When I tried to run it I got a foating exception (there is no single float in the program). I inserted some print statements, finally just below main(). As a desparate attempt I put exit(0) just below main(). It still crashed. After I dumped a large part of the editor I got it running (with only minor bugs). Inserting a print statement however, sometimes again caused crashes before main(). It even caused segmentation faults of `cv' sometimes. After many hypothesis and 2 days of observations these are the main ones: - I had to enlarge memory for `cv' (got a message from it). After a number of problems I enlarged the stack+malloc area for all passes of the compiler to 200K. - It doesn't matter whether the program is < 64K or > 64K. Size: 64000 bytes text, 5000 data and 20000 bss (about 6K more than on the PC, but this versions uses longs for indices). - It turns out that as long as the executable - 32 - data - text (the size for the relocation info) <= 4K everything is fine. As soon as this size goes over 4K curious things start to happen. Because of the crashes in `cv' I suspect this pass. As I have no sources for the compiler this is were the story ends for me. Has anyone had similar experiences or does one of the compiler gurus has a hint? If someone can provide me with the sources of `cv' I can continue my search (I feel I should not have to buy these if there is a bug and no official support). A happy, but a bit dissapointed, MINIX user --- Jan