+2 votes
124 views
in Computer Architecture by

1 Answer

+1 vote
by
selected by (user.guest)
 
Best answer

The tagged data types have been touched on briefly already. They are stored using the most significant 30 bits for the value and the least significant 2 bits for a tag. The tag bits are used to indicate the type of the data from an application program’s perspective. Tagged data values are of great use when implementing functional and logical languages such as Haskell, LISP, Smalltalk, Prolog and RUFL1 . The instructions that deal with tagged data (taddcc and tsubcc) will set the overflow flag if the tag of either operand is nonzero (or if normal overflow occurs). For this reason tagged operations are usually followed by a conditional branch to a routine that will check the format of the operands. To make this even easier there are special forms of the tagged operations (taddcctv and tsubcctv) that automatically perform a trap (similar to a software interrupt) if the overflow bit is set during the execution of the operation.

Other than this, tagged data values are treated as normal unsigned values when manipulated by the processor.

Related questions

+1 vote
1 answer 63 views
+1 vote
1 answer 267 views
+1 vote
1 answer 168 views
+1 vote
1 answer 138 views
+1 vote
1 answer 171 views
+1 vote
1 answer 340 views
+1 vote
1 answer 1.8k views
0 votes
1 answer 135 views
+2 votes
1 answer 1.3k views
+1 vote
0 answers 11 views
+2 votes
1 answer 813 views
+2 votes
1 answer 1.7k views
+2 votes
1 answer 873 views
+1 vote
1 answer 26 views
asked Nov 15 in Others by (user.guest)
0 votes
1 answer 62 views
0 votes
1 answer 50 views
asked Oct 28 in Computer Networks by (user.guest)
0 votes
1 answer 40 views
+1 vote
1 answer 44 views
asked Oct 19 in Law for Engineers by (user.guest)
+1 vote
1 answer 64 views
+1 vote
1 answer 147 views
+1 vote
1 answer 72 views
+1 vote
1 answer 289 views
0 votes
1 answer 394 views
+1 vote
1 answer 69 views
+1 vote
1 answer 114 views
+1 vote
1 answer 59 views
+2 votes
1 answer 941 views
+2 votes
1 answer 331 views
+1 vote
1 answer 482 views
+2 votes
1 answer 780 views
Welcome to CPENTalk.com
Solution-oriented students of computer engineering on one platform to get you that

ONE SOLUTION

...