From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11961 invoked by alias); 1 Feb 2002 00:03:57 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 11799 invoked from network); 1 Feb 2002 00:03:53 -0000 Received: from unknown (HELO localhost.cygnus.com) (216.138.202.10) by sources.redhat.com with SMTP; 1 Feb 2002 00:03:53 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id CDA763DEB; Thu, 31 Jan 2002 19:03:45 -0500 (EST) Message-ID: <3C59DB61.3000106@cygnus.com> Date: Thu, 31 Jan 2002 16:03:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: "Frank Ch. Eigler" Cc: cagney@redhat.com, binutils@sources.redhat.com, cgen@sources.redhat.com Subject: Re: include/dis-asm.h patch for cgen disassemblers References: <20020131124350.C19966@redhat.com> <15449.42904.232177.265525@casey.transmeta.com> <20020131162132.I19966@redhat.com> <3C59BD4A.9060900@cygnus.com> <20020131184230.A6166@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q1/txt/msg00032.txt.bz2 > Hi - > > cagney wrote: > >> What is the difference between an architecture, isa and machine? > > > architecture ~= bfd architecture ~= family of processors Hmm, archures.c contains: This enum gives the object file's CPU architecture, in a global sense---i.e., what processor family does it belong to? Another field indicates which processor within the family is in use. The machine gives a number which distinguishes different versions of the architecture, containing, for example, 2 and 3 for Intel i960 KA and i960 KB, and 68020 and 68030 for Motorola 68020 and 68030. > machine ~= bfd machine ~= implementation of an architecture > isa ~= instruction set ~= group of machine instructions decodable; > can be a function of cpu state Er, ISA == Instruction Set Architecture which to me is bfd_architecture. I think, here you're looking for something else. For instance, Arm has thumb and MIPS has MIPS16. They are modes but sill part of a single ISA. Andrew