Path: utzoo!attcan!uunet!husc6!rutgers!ucsd!ucbvax!HNYKUN11.BITNET!U211344 From: U211344@HNYKUN11.BITNET (Olaf 'Rhialto' Seibert) Newsgroups: comp.sys.amiga Subject: Re: Ideas for next Arp Message-ID: <8811251850.AA06178@jade.berkeley.edu> Date: 25 Nov 88 18:26:32 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 42 [ sorry, can't quote. I read news on another machine than I post from ] Rob Peck wrote that Jim Goodnow III's REZ recognizes some special code sequence in programs that are produced by the Manx compiler. That seems to be true. As far as I can guess, the following is the case. 1. There may be more than one code hunk. No 'small code' model necessary. 2. A custom LoadSeg() must be used, since all relocations must be inspected to see if there is more than one reference to the data hunk. That one reference should be the one that sets up the base register (so disassembly by REZ of the loaded code is hardly necessary) 3. Since the LoadSeg() is already custom, other things can be watched that would make sharing the code impossible. Propably, a 'virgin' copy of initialized data should be kept, to copy to the data segments of processes. So, I think that the only thing to do for compiler writers is to make available a 'small data' mode. And all well-known C compilers for the Amiga do that just fine. (except for PDC...). One flaw of the current Rez is that it accuses Arp programs to be written in BCPL (Yuk!) and Dme to be compiled with Lattice (also far from the truth...). More useful would be an indication of the amount of memory that they use. Something unrelated: Sometimes you see claims like 'This program was written in Manx C'. If I do see such a notice, I immediately question the knowledgability of the person in question. There is NO Manx C. There is C, a programming language defined by Kernighan and Ritchie, (soon also by an ANSI committee), and a Manx compiler, that accepts programs written in C. Usually, these people really mean to say: 'This program can be compiled with the Manx C compiler'. But why don't they say that, then??? Freely_Distributable=Greetings(Not_For_Any_Commercial_Purpose)-> Olaf.Seibert; +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +++ Let me tell you that I disclaim anything you care to name +++ --- Olaf Rhialto Seibert the Marvellous --- U211344@hnykun11.bitnet --- Study safely - stop deets 7167 BYTES FREE *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*