Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!uwm.edu!uwvax!persoft!dag From: dag@persoft.com (Daniel A. Glasser) Newsgroups: comp.sys.atari.st Subject: Re: Mixing C and Assembly Summary: MWC assembler follows Unix assembler syntax, not Motorolla Keywords: MWC assembler syntax Message-ID: <1990May7.151431.15956@persoft.com> Date: 7 May 90 15:14:31 GMT References: <3140@rodan.acs.syr.edu> <11900@stag.math.lsa.umich.edu> <1716@electro.UUCP> Organization: Persoft Inc., Madison, WI Lines: 25 The assembler shipped with the Mark Williams C package uses a Unix V7 style syntax. The object file format is also modeled after the Unix V7 object file format, allowing for long symbol names (the object format supports flexnames, the compiler doesn't generate them) and the symbol table is case sensitive. MADMAC was produced by Atari long after MWC shipped its compiler package and the object file format was pretty much determined. When the MWC object file format was determined there was no acceptable standard available. As a result they ported their Coherent object format and tools to the 68000 and the Atari ST. (Coherent is a ground-up/clean-room implementation of Unix V7.) The compiler can be made to generate Motorolla style assembly with an undocumented switch (which I cannot recall at this moment, try -VMOTO or something like that), and there are converters available for MWC->DRI and DRI->MWC object files. Note that the Alcyon/DRI compiler uses the leading "_" on symbol names, whereas the MWC compiler uses a trailing "_". The converters handle this. Daniel A. Glasser -- Daniel A. Glasser | Persoft, Inc. | dag@persoft.com (if it works yet) "Their brains were small, and they died."