Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: kulack AT us DOT ibm DOT com X-Lotus-FromDomain: IBMUS To: Michael Meissner cc: chiragz , cygwin AT sourceware DOT cygnus DOT com Message-ID: <8525690D.0059490A.00@D51MTA04.pok.ibm.com> Date: Thu, 29 Jun 2000 11:15:17 -0500 Subject: Re: Cross GCC for AS400 Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline I apologize to everyone for the off topic post. If you want to continue this discussion, I'd be more than happy to offline or at comp.sys.ibm.as400.misc. I'll post this note there as well... ======== Offtopic No compiler on the AS/400 (except the internal IBM OS/400 kernel (SLIC) compiler) ever generates the machine instructions directly. That's why compilers and applications don't have to change when we put a new/different processor in an AS/400. As a compiler writer, you generate a generic representation (IBM object code called 'W-code') of the program and then the linker built into the system (called the translator) generates machine instructions and creates a 'program object' that encapsulates them completely away from any APIs. There are no direct mechanisms to access those machine instructions once you've created the program. You never get to see the actual bits of the program unless you dump the program in hex. Also, there is no OS/400/Power PC VM on the AS/400 because the translation from W-code to machine instruction occurs at compile time. The W-code representation is also saved with the program object so that when the program object is restored to a different AS/400 with a different processor type (yes, you can do this), the translation into machine instruction can happen automatically. There's a document available from IBM on the W-code format. I believe its called the Compiler Writers Guide or some such thing. I don't know how to get a hold of it. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com