Assembly or ....
Richard A. O'Keefe
ok at quintus.uucp
Tue Dec 6 18:29:45 AEST 1988
In article <707 at ethz.UUCP> pasche at bernina.UUCP (Stephan Paschedag) writes:
>In article <1388 at aucs.UUCP> 861087p at aucs.UUCP (A N D R E A S) writes:
>>I've been told also that there are some low-level operations
>>that you just can't do in C or any other high level language.
>for example : I don't know a high-level language where you have control of
> the CPU status flags. These can be very useful for some
(a) BLISS, PL/360, most such MOHLLs.
(b) C with "asm" or "inline" can be made to generate any instruction.
(c) A high-level language which is not tied to a specific machine can't
provide a way of getting at the condition codes/carry/overflow flag
for the simple reason that there are machines (MIPS, MC88000) which
haven't got any.
> applications. One example is an operation you need for a
> fft program.
Bit reversal for an FFT program is best done with a table lookup.
On most machines the floating-point operations will swamp the bit
reversal, so you don't need the machine-specific loop. On a high-
performance machine (e.g. MIPS) the bit-at-a-time loop will be
killingly slow, compared with a table lookup.
More information about the Comp.lang.c
mailing list