Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sistemi operativi I > Uteriore domanda scritto
  Last Thread   Next Thread
Author
Thread    Post New Thread    Post A Reply
susy
.amico.

User info:
Registered: Aug 2007
Posts: 29 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 14:29:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Uteriore domanda scritto

In un sistema paginato con tabelle delle pagine a 2 livelli entrambe in memoria senza TLB qual è il numero di accessi in memoria che devono essere effettuate per eseguire : mov 4(%eax), %ebx?

C'è qualcuno che mi può spiegare?

Se entro breve non metterà l'avviso per l'aula proverò a mandare a mail al prof. anche se sono certa che sarà insieme a quello di sicurezza.

11-09-2013 10:27
Click Here to See the Profile for susy Click here to Send susy a Private Message Find more posts by susy Add susy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
xsia
.amico.

User info:
Registered: Jul 2011
Posts: 23 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 5:17:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Uteriore domanda scritto

Originally posted by susy
In un sistema paginato con tabelle delle pagine a 2 livelli entrambe in memoria senza TLB qual è il numero di accessi in memoria che devono essere effettuate per eseguire : mov 4(%eax), %ebx?

C'è qualcuno che mi può spiegare?

Se entro breve non metterà l'avviso per l'aula proverò a mandare a mail al prof. anche se sono certa che sarà insieme a quello di sicurezza.


Hai per caso anche le 4 possibili risposte?

11-09-2013 10:40
Click Here to See the Profile for xsia Click here to Send xsia a Private Message Find more posts by xsia Add xsia to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
susy
.amico.

User info:
Registered: Aug 2007
Posts: 29 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 14:29:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

No, è una domanda che ho trovato nei miei appunti

11-09-2013 10:46
Click Here to See the Profile for susy Click here to Send susy a Private Message Find more posts by susy Add susy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
xsia
.amico.

User info:
Registered: Jul 2011
Posts: 23 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 5:17:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Re: Uteriore domanda scritto

Ok, tentanto di ragionare:

mov 4(%eax), %ebx

Occorrerebbe fare:
un accesso in memoria pe recuperare l'intera istruzione
un accesso in memoria per recuperare il contenuto dell'indirizzo %eax+4
Poi la cpu sposta il tutto in %ebx

Così in totale sarebbero due accessi, ma non so se è giusto.

idee??

ps Potresti postare tutte le domande che hai? Potrebbero essere utili a tutti.

Last edited by xsia on 11-09-2013 at 10:56

11-09-2013 10:54
Click Here to See the Profile for xsia Click here to Send xsia a Private Message Find more posts by xsia Add xsia to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
susy
.amico.

User info:
Registered: Aug 2007
Posts: 29 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 14:29:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Purtoppo non he ho tante, l'altra che avevo l'ho gia postata, quella della lista linkata.
Posto però questo esercizio che a volte c'è nell'esame, solo che non ho la risp ma ci si può ragionare su:

Contenuto dei registri EAX ed EBX del seguente pezzo di codice:

push 1
push 3
push 5
mov ebp, esp
add esp, 4
mov eax, (esp + 4)
mov ebx, 1
L1: cmp ebx, 2
jnle L2
add eax, (esp)
add eax, (ebp)
inc ebx
jmp L1
L2: pop ebx

A me viene che EAX contiene 17 e EBX 3, qualcuno può confermare?

11-09-2013 11:10
Click Here to See the Profile for susy Click here to Send susy a Private Message Find more posts by susy Add susy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Cic
.fedelissimo.

User info:
Registered: Jul 2009
Posts: 44 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao, a me viene eax 10 e ebx 3.

02-07-2017 14:19
Click Here to See the Profile for Cic Click here to Send Cic a Private Message Find more posts by Cic Add Cic to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Cic
.fedelissimo.

User info:
Registered: Jul 2009
Posts: 44 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 16:21:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Avevo sbagliato, il risultato corretto dovrebbe essere EAX 30 ed EBX 3. Utilizzando la sintassi Intel però, perché con quella AT&T c'è qualcosa che non va.

Last edited by Cic on 04-07-2017 at 11:04

02-07-2017 14:32
Click Here to See the Profile for Cic Click here to Send Cic a Private Message Find more posts by Cic Add Cic to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 16:18.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.034 seconds (78.09% PHP - 21.91% MySQL) con 28 query.