/*

  Copyright (C) 2006-2009 Tsinghua University.  All Rights Reserved.

  This program is free software; you can redistribute it and/or modify it
  under the terms of version 2 of the GNU General Public License as
  published by the Free Software Foundation.

  This program is distributed in the hope that it would be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

  Further, this software is distributed without any warranty that it is
  free of the rightful claim of any third person regarding infringement 
  or the like.  Any license provided herein, whether implied or 
  otherwise, applies only to this software file.  Patent licenses, if 
  any, provided herein do not apply to combinations of this program with 
  other software, or any other product whatsoever.  

  You should have received a copy of the GNU General Public License along
  with this program; if not, write the Free Software Foundation, Inc., 59
  Temple Place - Suite 330, Boston MA 02111-1307, USA.

*/

Installing Open64 X86-PPC cross compiler
===================================================================================================

In file HOWTO-INSTALL-OPEN64, you can find the detailed information on how to
build and install open64 compiler. However, there are a few differences you should
notice when building open64 x86-ppc cross compiler. 
In short, first you configure the source file in you build directory like this:

	<path-to-open64-dir>/open64/configure --target=powerpc-unknown-linux-gnu \
	--prefix=/usr/local/open64-cross/
	
the --target tells how to build this compiler, here we build a x86-ppc cross compiler,
so we set the target in this way: powerpc-*-linux*. And --prefix tells where to install
it after building, if you don't specify it, the default dir is /usr/local/, After that, 

	make all
	
Now that it's built, you can install the compiler, 
	
	make install
	
This will install the libraries and binaries for open64 into the directory you have set 
by --prefix. Here, you may need root permission, so you may need to add a "sudo" 
before you install, like

	sudo make install

Now the cross compiler is now successfully installed in your machine. 



You may need to add this path to your $PATH, which is to add a line in 
file /etc/profile.

	export PATH=/opt/open64/open64-cross/bin:$PATH

After a restart, you can use the cross compiler by command like

	powercc -S helloworld.c

/*

  Copyright (C) 2006-2009 Tsinghua University.  All Rights Reserved.

  This program is free software; you can redistribute it and/or modify it
  under the terms of version 2 of the GNU General Public License as
  published by the Free Software Foundation.

  This program is distributed in the hope that it would be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

  Further, this software is distributed without any warranty that it is
  free of the rightful claim of any third person regarding infringement 
  or the like.  Any license provided herein, whether implied or 
  otherwise, applies only to this software file.  Patent licenses, if 
  any, provided herein do not apply to combinations of this program with 
  other software, or any other product whatsoever.  

  You should have received a copy of the GNU General Public License along
  with this program; if not, write the Free Software Foundation, Inc., 59
  Temple Place - Suite 330, Boston MA 02111-1307, USA.

*/

Installing Open64 X86-PPC cross compiler
===================================================================================================

In file HOWTO-INSTALL-OPEN64, you can find the detailed information on how to
build and install open64 compiler. However, there are a few differences you should
notice when building open64 x86-ppc cross compiler. 
In short, first you configure the source file in you build directory like this:

	<path-to-open64-dir>/open64/configure --target=powerpc-unknown-linux-gnu \
	--prefix=/usr/local/open64-cross/
	
the --target tells how to build this compiler, here we build a x86-ppc cross compiler,
so we set the target in this way: powerpc-*-linux*. And --prefix tells where to install
it after building, if you don't specify it, the default dir is /usr/local/, After that, 

	make all
	
Now that it's built, you can install the compiler, 
	
	make install
	
This will install the libraries and binaries for open64 into the directory you have set 
by --prefix. Here, you may need root permission, so you may need to add a "sudo" 
before you install, like

	sudo make install

Now the cross compiler is now successfully installed in your machine. 



You may need to add this path to your $PATH, which is to add a line in 
file /etc/profile.

	export PATH=/opt/open64/open64-cross/bin:$PATH

After a restart, you can use the cross compiler by command like

	powercc -S helloworld.c

