Path: utzoo!utgpu!watserv1!watcgl!electro!ignac From: ignac@electro.UUCP (Ignac Kolenko) Newsgroups: comp.sys.atari.st Subject: Re: Mixing C and Assembly Message-ID: <1716@electro.UUCP> Date: 3 May 90 05:03:23 GMT References: <3140@rodan.acs.syr.edu> <11900@stag.math.lsa.umich.edu> Reply-To: ignac@electro.UUCP (Ignac Kolenko) Organization: Electrohome Ltd., Kitchener, ON Lines: 43 In article <11900@stag.math.lsa.umich.edu> hyc@math.lsa.umich.edu (Howard Chu) writes: >In article <3140@rodan.acs.syr.edu> dinapoli@rodan.acs.syr.edu (Ron DiNapoli) writes: >>Has anyone out there managed to mix Mark Williams C and assembly code? If so, [stuff deleted] >This isn't exactly the clearest of questions. The Mark Williams package >comes with an assembler, what else do you need? The entire Mark Williams >software suite is pretty closely modeled after a Unix programming environment, >and all the tools reflect that orientation. In particular, the object file >format used by their compiler, assembler, and linker is a proprietary format, >and not what you get out of the DRI assembler. Also, the syntax used in the >assembler is pretty much the same as you'll see on a Unix system. > >If what you're really asking is "does MWC let you use inline assembly code >in your C source files" the answer is no. But it's a simple matter to pull >out the inline code and assemble it separately using their assembler. from experience here at electrohome, i'd say that Mark Williams C has probably the most rediculous, non standard, brain dead, stupid assembler i've ever seen for the MC68000. nothing in it makes any sense, like how to make a register list, the naming conventions for labels, etc. also, why the hell are comments started with a bloody '/' character??? it makes porting of assembly files a REAL hassle. like Howard says, the object file format is completely proprietary, so you can't use a world class assembler such as MadMac (in the atari devkit) with the MWC environment. blech! :-( we've switch over to Manx C for internal development on the Atari, and i have to admit that it is probably one of the best environments you can get for the Atari ST. it comes with a NORMAL assembler, the compiler generates reasonably efficient code, and it supports a number of code models which my other favorite, Laser C, doesn't yet. i think i've gotten off topic ... hope this all helps! -- =====Ignac A. Kolenko (The Ig)=====watmath!watcgl!electro!brasoft!ignac====== co-author of QuickST, and the entire line of Quick Software!!!! Branch Always Software Box 2624, Station B, Kitchener, Ont. CANADA N2H 6N2 =============================================================================