Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!princeton!udel!mmdf From: Leisner.Henr@xerox.com (Marty) Newsgroups: comp.os.minix Subject: help needed converting Aztec .exe to a.out Message-ID: <455@louie.udel.EDU> Date: Tue, 25-Aug-87 18:50:53 EDT Article-I.D.: louie.455 Posted: Tue Aug 25 18:50:53 1987 Date-Received: Thu, 27-Aug-87 02:13:59 EDT Sender: mmdf@udel.EDU Lines: 34 I'm currently the process of trying to build a Minix boot disk from the Aztec C compiler on MS-DOS. There was some talk on the net about this a few months ago, pointers would be welcome. I'm using the aztec compiler, assembler and linker. Is the my understanding of the 8088 implementation of minix correct for split I&D? 1) code (text) is readonly, sits in its on segment 2) data is initialized, sits in the a separate click aligned data segment 3) bss sits above data. Does it have to be click aligned? 4) heap sits above bss. 5) Stack sits above heap. 6) 2-5 sit in one 8088 segment, <=64k. The dos2out program gets the bss size as: (d_ptr->min_free<<4) - d_ptr->sp_reg; I don't understand the above relationship. How do I compute the amount of bss for an .exe? (Is it the min free mem field of the exe header?). Anyway, the Aztec linker doesn't put much useful information in the exe header (the startup routine sets up the stack and clears the bss). Looks like the easiest think to do it get the information out of a symbol table and have some option to establish the stack/heap size (which both come from the dynamic memory allocation?). Any other ways? marty GV: leisner.henr NS: martin leisner:henr801c:xerox