old-www/HOWTO/GCC-Frontend-HOWTO-5.html

59 lines
1.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE> GCC Frontend HOWTO: Installing the GCC </TITLE>
<LINK HREF="GCC-Frontend-HOWTO-6.html" REL=next>
<LINK HREF="GCC-Frontend-HOWTO-4.html" REL=previous>
<LINK HREF="GCC-Frontend-HOWTO.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="GCC-Frontend-HOWTO-6.html">Next</A>
<A HREF="GCC-Frontend-HOWTO-4.html">Previous</A>
<A HREF="GCC-Frontend-HOWTO.html#toc5">Contents</A>
<HR>
<H2><A NAME="s5">5. Installing the GCC </A></H2>
<P>Let us begin with the preliminaries. I assume that you have
down loaded the source code of GCC. The different steps of
installation of GCC are given with it. But I add it here for
completeness.
<P>Like most GNU software GCC must be configured before
it is built. Let the GCC source code be in a directory called
'srcdir'. Create a new directory 'objdir' where the GCC
is to be built. Create one more directory called 'local' where
the tools will be accumulated. Let our current directory be
/home/name. Now we have /home/name/srcdir, /home/name/objdir and
/home/name/local.
<P>To configure GCC use the command
<PRE>
cd objdir
/home/name/srcdir/configure --prefix=/home/name/local/
</PRE>
<P>When we complete the creation of our language add one
more option,
<PRE>
--enable-languages=demo
</PRE>
<P>where demo is the new language we are going to develop.
The second step required is the building process. It is
accomplished with the command
<PRE>
make bootstrap-lean
</PRE>
<P>The last step is the final installation procedure. It is
done with the command
<PRE>
make install
</PRE>
<P>We can start our procedure of developing a new language.
<HR>
<A HREF="GCC-Frontend-HOWTO-6.html">Next</A>
<A HREF="GCC-Frontend-HOWTO-4.html">Previous</A>
<A HREF="GCC-Frontend-HOWTO.html#toc5">Contents</A>
</BODY>
</HTML>