Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!DREA-XX.ARPA!DERMOTT From: DERMOTT@DREA-XX.ARPA (Dave Dermott) Newsgroups: comp.os.vms Subject: DECUS C on VMS Message-ID: <12306036928.37.DERMOTT@DREA-XX.ARPA> Date: Thu, 28-May-87 15:19:48 EDT Article-I.D.: DREA-XX.12306036928.37.DERMOTT Posted: Thu May 28 15:19:48 1987 Date-Received: Sat, 30-May-87 09:54:35 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 128 DECUS C PROBLEMS ON VMS This may not be the right group for DECUS C but I don't know where else to ask and there were several messages about it here. 1/ DECUS-C on VMS RSX emulation mode ? I can't run the DECUS C compiler on VMS RSX11 emulation mode. The compiler starts but aborts with "Memory protect error". The same task does work when I move it to a real PDP 11. I used the supplied command file(VMAKCC.COM) for building it on VMS but I used object files that had been assembled previously on a real PDP11. Do I have to reassemble all the sources on VMS ? I rebuilt the task on VMS from objects. 2/ BUG in DECUS C I found this bug in the compiler . It generates a word "add" when it should be a byte "add". This causes an address error when an odd address is reached, the sum will also be wrong. .11: mov $_data,r4 * r4 contains address of data[0] add _i,r4 * add i to address movb _chksum,r0 add (r4),r0 * add word causes error odd address movb r0,_chksum This code occurs in SPACK in the original C-KERMIT. Changing chksum to int works. Has this bug been fixed? /* -------------------------------------------------- */ /* odd addressing error in DECUS C for pdp 11 */ #include char data[10]; char chksum; /* int chksum works */ int i; int len; int t; main() { len=5; chksum=0; for (i=0;i