Interview Question

MG
Written by
2
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.

Post a Comment

2Comments

Your comments will be moderated before it can appear here. Win prizes for being an engaged reader.

  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

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!