Results 1 to 6 of 6
Thread: RISC ðåãèñòðè
Hybrid View
-
12th February 2009 21:26 #1
RISC ðåãèñòðè
Èìàì åäíà çàäà÷à çà èç÷èñëåíèå íà áðîé ðåãèñòðè â RISC (reduced instruction set computers) ìàøèíè. Ïðîñòî ìè òðÿáâà äà ðàçáåðà êàê ñòàâà òî÷íî èç÷èñëåíèåòî íà áðîéêàòà ðåãèñòðè è çàùî òàêà ñå ïîëó÷àâà.
A RISC processor has 8 global registers and 10 register windows. Each window has 4 parameters registers, 8 local registers, and 4 temporary registers. How many total registers are in this CPU?
-
12th February 2009 22:15 #2
-
12th February 2009 22:21 #3
Òâúðäå åëåìåíòàðíî ìè èçãëåæäà.
È àç ñè ìèñëåõ, ÷å 16 'âúòðåøíè' ðåãèñòðè (ïîëçâàíè îò òåêóùàòà ïðîöåäóðà, èçïúëíÿâàíà îò ïðîöåñîðà) ïî áðîÿ ïðîçîðöè è îòäåëíî òîçè áðîé, ñóìèðàí ñ 8-òå ãëîáàëíè ðåãèñòúðà.
-
13th February 2009 00:24 #4
Íàé-âåðîÿòíî ÷åòåø íåùî çà SPARC àðõèòåêòóðà - òÿ ìàé å åäèíñòâåíàòà ìàñîâà, êîÿòî ñúì ÷óë äà èìà "ïðîçîðöè".
Âèæ òóê http://en.wikipedia.org/wiki/Sparc
P.S. ñïîìåíàâàò è Amd 29000 è intel 960 - ñúùî ñà ìíîãî ÷åñòî ñðåùàíè (ïðèìåðíî i960 ïî ÐÀÈÄ êîíòðîëåðè), íî àç ïðåäïîëàãàì, ÷å ñå ïèòà çà öåíòðàëåí ïðîöåñîð ñ îáùî ïðåäíàçíà÷åíèå.The SPARC processor usually contains as many as 128 general purpose registers. At any point, only 32 of them are immediately visible to software - 8 are global registers (one of which, g0, is hard-wired to zero, so only 7 of them are usable as registers) and the other 24 are from the stack of registers. These 24 registers form what is called a register window, and at function call/return, this window is moved up and down the register stack. Each window has 8 local registers and shares 8 registers with each of the adjacent windows.Last edited by Siemens; 13th February 2009 at 00:32.
-
13th February 2009 00:43 #5Çíà÷è, êàêòî å îáÿñíåíî òóê, òàêà âåðîÿòíî òðÿáâà äà å è â îáùèÿ ñëó÷àé:At any point, only 32 of them are immediately visible to software - 8 are global registers (one of which, g0, is hard-wired to zero, so only 7 of them are usable as registers) and the other 24 are from the stack of registers. These 24 registers form what is called a register window, and at function call/return, this window is moved up and down the register stack. Each window has 8 local registers and shares 8 registers with each of the adjacent windows.
îáù áðîé = ãëîáàëíè ðåãèñòðè + ïðîçîðöè*(ëîêàëíè + temporary + parameter)
È çà ãîðíàòà çàäà÷à íàèñòèíà îñòàâà äà ñà 168?
Èëè òàêàâà îáùà ôîðìóëà íå ñòàâà çàðàäè ðàçëè÷íèòå RISC àðõèòåêòóðè è ðàçëè÷íîòî ðàçïðåäåëåíèå íà ðåãèñòðèòå...?
-
13th February 2009 03:11 #6
Ðàçëè÷íèòå àðõèòåêòóðè èìàò ðàëçè÷åí áðîé è ðàçëè÷íà îðãàíèçàöèÿ íà ðåãèñòðèòå. Êàòî ñàìî sparc, am29000 è i960 ñà ñ ïðîçîðöè - ïðèìåðíî MIPS è Alpha íå ñà. Ò.å. êàêòî å çàäàäåí âúïðîñà ìîãàò äà ñå ïðàâÿò ðàçëè÷íè èíòåðïðåòàöèè, àêî íå å óêàçàíà êîíêðåòíî àðõèòåêòóðà/ôàìèëèÿ.




Reply With Quote
Lenovo ThinkPad 15 èëè IdeaPad 15
5th May 2023, 22:16 in Ìîáèëíè êîìïþòðè