delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/01/11:01:55

To: Kimberley Burchett <OKRA AT max DOT tiac DOT net>
Cc: DJGPP Mailing List <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: Re: asm interface
Date: Thu, 1 Sep 1994 06:52:24 PDT
From: "Marty Leisner" <leisner AT sdsp DOT mc DOT xerox DOT com>

> 
>   'lo there.  What I want to do now is figger out the inline assembler.
> I've got a function that I'd like to write most of in C and then the 
> inner loop in asm.  The only thing I can't figure out is how to get the 
> local variables I use in the function into registers.


I always disliked inline assembler.   I also found it not worthwhile
for all 16 bit+ processors (there may be some gains in 8 bit processors).

I only found assembler useful for interfacing with lower level details
where C is not useful.

My advice is to stay away from inline assembler unless you have really
good reasons (obfuscated code and job security is a good reason ;-))

And the only way to get this hard data is to instrument your program...

marty
leisner AT sdsp DOT mc DOT xerox DOT com  
Member of the League for Programming Freedom
"I just know I'm a better manager when I have Joe DiMaggio in center field" -- 
Casey Stengel


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019