Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!glacier!Shasta!kaufman From: kaufman@Shasta.ARPA (Marc Kaufman) Newsgroups: net.micro.68k Subject: asm construct in Alcyon-C and others Message-ID: <293@Shasta.ARPA> Date: Fri, 18-Apr-86 01:31:36 EST Article-I.D.: Shasta.293 Posted: Fri Apr 18 01:31:36 1986 Date-Received: Sat, 19-Apr-86 13:30:40 EST Reply-To: kaufman@Shasta.ARPA (Marc Kaufman) Organization: Stanford University Lines: 21 (This was intended for mod.computers.68k, but I cant find the name of the moderator, and my system wont let me post to mod. groups directly) >(someone at University of Louisville writes..) > >Looking around the c068.68k program (step two in the compilation process), >I discovered reference to the asm keyword. I wonder if anyone has discovered >whether there is a correct syntax for an assembly statement using this keyword. >Or have I misunderstood entirely? If anyone has come across this asm keyword >and knows how to use it, please let me know. Alcyon-C, and compilers derived from the 'Portable' C compiler (at least) allow direct insertion of assembly statements into the compiled code. the syntax is: asm( " any string to put into .s file "); The double quotes are mandatory, and the entire statement must appear on a single line. This is processed during pass 1 of the compiler. Any linkages to variables, etc., must be in conformance with the code generated by your compiler (look at a .s file for examples). Marc Kaufman (kaufman@SU-Shasta) .. another blow for machine independent code!