* getType().getSize() safe/correct way to determine Register size?
@ 2007-10-17 13:11 Phil Muldoon
2007-10-17 15:00 ` Andrew Cagney
0 siblings, 1 reply; 2+ messages in thread
From: Phil Muldoon @ 2007-10-17 13:11 UTC (permalink / raw)
To: Frysk Hackers
As the subject says, but pedantically:
int registerSize = IA32Registers.EAX.getType().getSize();
byte[] byteOrderedRegister = new byte[registerSize];
task.access(IA32Registers.EAX, 0, registerSize, byteOrderedRegister,
0, false);
Is this a safe/correct way to determine register size?
If not, any other way?
Regards
Phil
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-17 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-17 13:11 getType().getSize() safe/correct way to determine Register size? Phil Muldoon
2007-10-17 15:00 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).