From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3608 invoked by alias); 17 Oct 2007 13:11:46 -0000 Received: (qmail 3601 invoked by uid 22791); 17 Oct 2007 13:11:45 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 Oct 2007 13:11:43 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id l9HDBeMX017694 for ; Wed, 17 Oct 2007 09:11:40 -0400 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l9HDBe9G026246 for ; Wed, 17 Oct 2007 09:11:40 -0400 Received: from localhost.localdomain (vpn-6-13.fab.redhat.com [10.33.6.13]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l9HDBdIg020446 for ; Wed, 17 Oct 2007 09:11:39 -0400 Message-ID: <47160A0A.3010406@redhat.com> Date: Wed, 17 Oct 2007 13:11:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Frysk Hackers Subject: getType().getSize() safe/correct way to determine Register size? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00061.txt.bz2 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