Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!gt-eedsp!emory!platt From: platt@emory.UUCP (Dan Platt) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: Inline assembler in Microsoft C ???? Message-ID: <2093@emory.UUCP> Date: Wed, 17-Jun-87 00:59:27 EDT Article-I.D.: emory.2093 Posted: Wed Jun 17 00:59:27 1987 Date-Received: Sun, 21-Jun-87 09:37:02 EDT References: <608@zen.UUCP> <2299@hoptoad.uucp> Reply-To: platt@emory.UUCP (Dan Platt) Distribution: world Organization: Math & Computer Science, Emory University, Atlanta Lines: 28 Keywords: Inline assembler code Xref: mnetor comp.sys.ibm.pc:4926 comp.lang.c:2540 In article <2299@hoptoad.uucp> pozar@hoptoad.UUCP (Tim Pozar) writes: >In article <608@zen.UUCP> vic@zen.UUCP (Victor Gavin) writes: >> >>I'm using Microsoft C version 4.0 on an HP Vectra running DOS 3.2 >> >>Can anyone tell me if there is an "inline" assembler capability for this >>compiler. I can't find any mention of anything like this in the documentation >>but it would help me a great deal when interfacing to existing m/code routines. >> >>I have heard of C compilers where you could do things like: >>#asm >> >>#endasm > Isn't this spo'sta be apart of the "Standard C". I seem to remember >it being metioned in the K&R. K&R refer to assembler only on page 180 (to the best of my knowlege) where they state that the keyword 'asm' is reserved by some implementations (no other comments). Having done a fair amount of C/Assembler interfacing (using MS C 4.0) I can say that it's not too much of a burden to write the code, and link the .obj modules in at link time. It also gives you more control over how and where your data is treated and stored. I've heard that the Turbo C has the inline capability. Dan