<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=content-type content=text/html;charset=us-ascii>
<META content="MSHTML 6.00.2900.3676" name=GENERATOR></HEAD>
<BODY bottomMargin=0 leftMargin=3 topMargin=0 rightMargin=3>
<DIV></DIV>
<DIV> </DIV>
<DIV>On Fri, 16 Jul 2010 12:00:01 -0500 <A
href="mailto:christiansource-request@ofb.biz">christiansource-request@ofb.biz</A>
writes:<BR>> Date: Thu, 15 Jul 2010 14:58:37 -0500<BR>> From: Tim Young
<<A
href="mailto:Tim.Young@LightSys.org">Tim.Young@LightSys.org</A>><BR>> To:
"A Christian virtual Free Software and Linux Users Group."<BR>>
<<A
href="mailto:christiansource@ofb.biz">christiansource@ofb.biz</A>><BR>>
Subject: Re: [CS-FSLUG] off topic? gcc help<BR>> Message-ID: <<A
href="mailto:4C3F686D.2000801@LightSys.org">4C3F686D.2000801@LightSys.org</A>><BR>>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<BR>>
<BR>> Well, I think you may get a number of different answers to
your <BR>> question. I think there are a number of ways to go from
here, and <BR>> different ways to do it.</DIV>
<DIV> </DIV>
<DIV>I go to </DIV>
<DIV><A
href="http://wiki.osdev.org/GCC_Cross-Compiler">http://wiki.osdev.org/GCC_Cross-Compiler</A></DIV>
<DIV> </DIV>
<DIV>and</DIV>
<DIV><A
href="http://gcc.gnu.org/install/build.html">http://gcc.gnu.org/install/build.html</A></DIV>
<DIV><A
href="http://gcc.gnu.org/install/test.html">http://gcc.gnu.org/install/test.html</A></DIV>
<DIV><A
href="http://gcc.gnu.org/simtest-howto.html">http://gcc.gnu.org/simtest-howto.html</A><BR></DIV>
<DIV>to learn how to </DIV>
<DIV>1 build a cross compiler for a tiny 8-bit processor (2k instructions,
32 bytes of RAM)</DIV>
<DIV>2 run the gcc compiler tests (gcc-4.4.3/gcc/testsuite) for compiler
verification/regression testing</DIV>
<DIV>3 automating the run of the executables generated by the
cross-compiler in a simulator</DIV>
<DIV> </DIV>
<DIV>I was given a simulator that only runs under cygwin (linus/bash on
winXP).</DIV>
<DIV> </DIV>
<DIV>I am unable to build the cross-compiler on cygwin. I JUST now tried
to build it on Ubuntu 10.04.</DIV>
<DIV>It bombed at exactly the same place as cygwin while doing a
make:</DIV>
<DIV>----------</DIV>
<DIV>*** BFD does not support target xxx-unknown-none.</DIV>
<DIV>*** Look in bfd/config.bfd for supported targets.</DIV>
<DIV>----------</DIV>
<DIV> </DIV>
<DIV>Building the cross-compiler looks like it is the place where it also builds
the testsuite. I may be wrong, but I'm trying to find SOME clue as to how
to run DejaGnu (runtest) against the gcc testsuite. I HAVE NO CLUE.</DIV>
<DIV><BR>> runtest assumes that you already have a number of tests all set up
<BR>> and ready to go. If so, you will need to know the directories
where <BR>> <BR>> those tests are, etc. So a question: Have you been
given a number <BR>> of <BR>> tests to run?<BR></DIV>
<DIV>Yep, I am supposed to come up with some code for Regression testing
the brand new C compiler.</DIV>
<DIV>It is supposed to check out all aspects of the Compiler. It cant do
long, float, double nor arrays bigger than 32 bytes. And no libraries that would
blow the 2K instruction limit.</DIV>
<DIV> </DIV>
<DIV><BR>> If you have not been given tests, do you have much information
about <BR>> <BR>> how thoroughly you need to test the gcc compiler?
If all you need <BR>> is <BR>> to know that it can compile something very
simple, then we just need <BR></DIV>
<DIV>Hello world comes out to be 346 instructions. Now to test:</DIV>
<DIV> </DIV>
<DIV> 1. Recursive function calls (to test 'call
stack'-related functionality)<BR> 2.
Pointers<BR> (a) Array-pointer
interchangeability<BR> (b) Type
casting<BR> (c) Function
arguments<BR> 3. typedef<BR> 4.
multi-dimensional arrays<BR> 5.
Statements:<BR> (a) switch (including nested
switch)<BR> (b)
do/while<BR> (c) goto, break,
continue<BR> (d) for (includes tests for
exclusion of the initialization, test, and update parts of the for
statement)<BR> 6. Structures (accessing members of structures,
operations on members, pointers to structures)<BR> 7.
Returning Arrays (as static array or pointer-based function
argument)<BR> 8. Preprocessor
<BR> (a) Macro definition and expansion for
simple values and function-like macros)<BR>
(b) Variadic Macros<BR> (c) Conditional
inclusion<BR> 9. Variable-length argument
lists<BR> 10. Special keywords (const, volatile, extern,
inline, sizeof, static)<BR> 11.
Operators:<BR> (a) Arithmetic (+, -, *, /,
%)<BR> (b) Boolean (!, &&,
||)<BR> (c) Bitwise (~, &, |, ^,
>>, <<)<BR> (d) Referencing and
dereferencing (related to pointer
manipulation)<BR> (e) Conditional
evaluation<BR> (f) Member selection (for
structures, unions, pointer-based, etc)<BR> 12.
Nests:<BR> (a)
Loops<BR> (b) Function
calls<BR> (c) Preprocessor
Macros<BR> (d)
Structures<BR> 13. Interrupt handling<BR><BR>> to give you
some simple C code and have you compile a "Hello <BR>> World".<BR>>
<BR>> If none of these make sense, can you just ramble a bit more about
<BR>> what you need to do with gcc? Is this for a class? What
platform </DIV>
<DIV> </DIV>
<DIV>It is for a JOB that I am woefully inadequate for, I am finding out.</DIV>
<DIV>I have 2 weeks to get it done. 8-b</DIV>
<DIV>(And it took me a week just to get a working compiler, but not by building
it, it was sent to me -- they did it but I cannot using their instructions, not
on cygwin and not on ubuntu. <gag><choke>)</DIV>
<DIV><BR>> are you doing this on? Is there an end goal, like needing to
<BR>> compile <BR>> a program that already exists?<BR></DIV>
<DIV>Well, the testsuite code already exist, IF I can use it, otherwise I'll
have to come up with a pile on my own.</DIV>
<DIV> </DIV>
<DIV>Thanks for the encouragement by at least responding.</DIV>
<DIV><BR>> - Tim Young<BR>> <BR>> On
7/15/2010 1:52 PM, <A href="mailto:warm38@juno.com">warm38@juno.com</A>
wrote:<BR>> > My Linux bash scripting is old, and I've never built
gcc (well, <BR>> years<BR>> > ago I built gcc for the 68HC1x), but now
I gotta test a port of <BR>> the gcc<BR>> > compiler.<BR>>
><BR>> > I know that "runtest" is involved, but no clue how to set it
up to <BR>> run.<BR>> ><BR>> > Anyone out there willing to help
me get started? Or at least give <BR>> me a<BR>> > pointer where
I can get help?<BR>> > (gcc.org answer is Read The Freaking Manual and I
have read the <BR>> online<BR>> > docs, but I'm not speaking the same
language and there are a LOT <BR>> of<BR>> > assumptions they make that
leave me clueless).<BR>> ><BR>> > I'm mail bombing anyone with more
than ten cents worth of <BR>> knowledge about<BR>> > computers,
especially of the Linux variety.<BR>> ><BR>> >
wade<BR></DIV></BODY></HTML>
<br><br><font SIZE="2" color="#000000">____________________________________________________________</font><br><a style="TEXT-DECORATION: none" href="http://thirdpartyoffers.juno.com/TGL3142/4c409e09f2781356970st01vuc" target=_blank><font face="Arial"><font color="#004080" size="3"><b>Penny Stock Jumping 2000%</b></font><br><font color="#000000" size="2">Sign up to the #1 voted penny stock newsletter for free today!<br></a><a style="COLOR: #000000" href="http://thirdpartyoffers.juno.com/TGL3142/4c409e09f2781356970st01vuc" target=_blank>AwesomePennyStocks.com</a></font></font>