Re: A few questions about C programming.

From: Douglas A. Gwyn (DAGwyn_at_null.net)
Date: 10/06/04


Date: Wed, 06 Oct 2004 02:09:38 -0400

DEMAINE Benoit-Pierre wrote:
> No, I was asking about single instruction operation .

Actually you asked about implementing a circular shift
using C. Some compilers will recognize the idiom Paul
suggested and compile it into a single machine
instruction (when the hardware has one), but even if
they compile it into a few instructions what do you
care so long as it performs the right function?



Relevant Pages

  • Re: A few questions about C programming.
    ... I was asking about single instruction operation. ... Actually you asked about implementing a circular shift ... they compile it into a few instructions what do you ...
    (comp.programming)
  • Re: interesting use of NEXT SENTENCE vs. CONTINUE
    ... > the existence of an instruction to draw the proper comparison. ... > memory address pointed to by register based on the tested condition. ... > case is precisely the differing object code for the unconditional branch, ... Won't compile as is ... ...
    (comp.lang.cobol)
  • Re: CREATE
    ... possible code field address. ... defining word's definition. ... compiled with the more general subroutine call instruction that could ... The only difference being that, at compile time, VARIABLE ...
    (comp.lang.forth)
  • Re: CREATE
    ... into CREATE unnecessarily restricts certain implementation techniques. ... subroutine call instructions, e.g. the Intel 8080 RST, or the RCA 1802 ... compiled with the more general subroutine call instruction that could ... The only difference being that, at compile time, VARIABLE ...
    (comp.lang.forth)
  • Re: Illegal instruction (core dumped)
    ... (snip regarding "Illegal instruction (core dumped)") ... > 1) overwriting the compiled code by writing to an invalid array ... any compile time errors. ...
    (comp.lang.fortran)

Loading