Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Portable "asm" (Was: The D Programming Language) Message-ID: <1988Feb25.203425.8925@utzoo.uucp> Keywords: portable D Organization: U of Toronto Zoology References: <11702@brl-adm.ARPA> <243@eagle_snax.UUCP> <2245@geac.UUCP> Date: Thu, 25 Feb 88 20:34:25 GMT > If we have the compiler replace names by locations (register and/or memory) > of the variables used... This does of course assume that all locations are addressable in all instructions, which is emphatically not the case on many machines. > We also should get rid of those quotes in the process... What if I want to write asm("mov ')', r0")? The quotes are a reasonable way of keeping the syntax of the assembler entirely out of the compiler's own syntax handling, which is a good thing, especially for portable compilers. -- Those who do not understand Unix are | Henry Spencer @ U of Toronto Zoology condemned to reinvent it, poorly. | {allegra,ihnp4,decvax,utai}!utzoo!henry