From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8f7cfb674df61db6,start X-Google-Attributes: gid1164f8,public From: rfromm@barstow.CS.Berkeley.EDU (Richard Fromm) Subject: question about ATOM, the alpha architecture analysis tool Date: 1995/11/29 Message-ID: <49igof$nct@agate.berkeley.edu>#1/1 X-Deja-AN: 120400638 distribution: ucb organization: University of California, Berkeley newsgroups: comp.sys.dec originator: rfromm@barstow.CS.Berkeley.EDU i'm not sure whether or not this is the right newsgroup for this, but i couldn't find anything else that i thought was more relevant. if there is, please let me know. i have a few questions about using ATOM, the alpha architecture analysis tool. 1) if i just want to look at the static instruction code, and not the dynamic execution stream, do i have any other choices than getting the whole object with GetFirstObj and then grabbing the instruction array with GetObjInstArray? it seems like the approach of grabbing procedures, and then blocks within procedures, and then instructions within blocks is great for getting the dynamic flow, but i'm not sure how to go about using those functions if i just want to look at the instructions in the order that they're stored. 2) the problem with the above approach (using GetObjInstArray) is that it returns an array of that is of type (int *), while all of the routines that operate on individual instructions are expecting type (Inst *). is there any way around this? what really is within the type (Inst *)? (i tried going thru the header file cmplrs/atom.inst.h but couldn't figure it out) is there any way to caste the data i get from GetObjInstArray to be used by the instruction parsing routines (like GetInstInfo) which are all expecting (Inst *)? - rich fromm rfromm@cs.berkeley.edu -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rich Fromm 510-595-1074 home 494 Soda Hall 510-643-6228 work Computer Science Division/EECS Dept. rfromm@cs.berkeley.edu