Mail Archives: djgpp/1994/09/01/11:01:55
>
> '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 -