Interview Question

Some software programming languages allow compilers to perform "short cut" or "short circuit" optimizations on AND and OR operations. In a short-cut AND or OR, the second argument is not evaluated if the first argument evaluates to a controlling value. For example, in evaluating f(x) AND g(y), if f(x) is false, then g(y) will not be evaluted.
  1. Answer whether this optimization is feasible and beneficial in hardware.

2/Post a Comment/Comments

Your comments will be moderated before it can appear here.

  1. I think so, it should not be a problem, HDL's do use short circuit evaluation, is that right?

    ReplyDelete
  2. I disagree. Programming is software oriented. It is a problem of base mobility.

    ReplyDelete

Post a Comment

Your comments will be moderated before it can appear here.

Previous Post Next Post
ads1
Ads2