| Author |
Message |
Hameed
Guest
|
Posted:
Fri Mar 04, 2005 12:34 am Post subject:
Compiling C++ benchmarks for SimpleScalar PISA targets. |
|
|
Hello,
I have been able to build the latest gcc ported for PISA on
SimpleScalar which is 2.7.2.3 by Mark Oskin. It can build C programs
sucessfully but it couldn't build a hello_world type program in C++, it
is simply complaining about missing header files. I can't seem to find
any of the header files for C++ like iostream.h and the likes.
Apparently, the libraries for g++ were not ported with gcc 2.7.2.3
I am installing on a Sun Solaris box.
I wonder what would be the way to go to build libg++ although the
available source code and configure doesn't have support for
SimpleScalar.
Do I just configure it for MIPS or something like that and just point
the compiler to the simplescalar gcc and then debug it from there?
Any help or pointers would be greatly appreciated.
Hameed. |
|
| Back to top |
|
 |
Brian Inglis
Guest
|
Posted:
Fri Mar 04, 2005 2:48 am Post subject:
Re: Compiling C++ benchmarks for SimpleScalar PISA targets. |
|
|
On 3 Mar 2005 11:34:17 -0800 in comp.arch, "Hameed"
<sharshera@gmail.com> wrote:
| Quote: | Hello,
I have been able to build the latest gcc ported for PISA on
SimpleScalar which is 2.7.2.3 by Mark Oskin. It can build C programs
sucessfully but it couldn't build a hello_world type program in C++, it
is simply complaining about missing header files. I can't seem to find
any of the header files for C++ like iostream.h and the likes.
Apparently, the libraries for g++ were not ported with gcc 2.7.2.3
I am installing on a Sun Solaris box.
I wonder what would be the way to go to build libg++ although the
available source code and configure doesn't have support for
SimpleScalar.
Do I just configure it for MIPS or something like that and just point
the compiler to the simplescalar gcc and then debug it from there?
Any help or pointers would be greatly appreciated.
|
There's GCC, the GNU Compiler Collection, and then there's gcc, the
GNU C compiler, which does not include gpp, ~GNU++, the GNU C++
compiler.
Try downloading, configuring, and building the gpp package with the
same level as the gcc package, using the same target specs as the gcc
package, i.e. targeted for the MIRV/PISA backend.
You may have to download and build glibc and glibc++ separately.
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian.Inglis@CSi.com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply |
|
| Back to top |
|
 |
Jason Lee Eckhardt
Guest
|
Posted:
Fri Mar 04, 2005 3:23 am Post subject:
Re: Compiling C++ benchmarks for SimpleScalar PISA targets. |
|
|
In article <1109878457.569910.33980@z14g2000cwz.googlegroups.com>,
Hameed <sharshera@gmail.com> wrote:
| Quote: | Hello,
I have been able to build the latest gcc ported for PISA on
SimpleScalar which is 2.7.2.3 by Mark Oskin. It can build C programs
sucessfully but it couldn't build a hello_world type program in C++, it
is simply complaining about missing header files. I can't seem to find
any of the header files for C++ like iostream.h and the likes.
Apparently, the libraries for g++ were not ported with gcc 2.7.2.3
I am installing on a Sun Solaris box.
I wonder what would be the way to go to build libg++ although the
available source code and configure doesn't have support for
SimpleScalar.
Do I just configure it for MIPS or something like that and just point
the compiler to the simplescalar gcc and then debug it from there?
Any help or pointers would be greatly appreciated.
|
Rather than attempting to use a system that forces you to struggle
with a version of gcc that is hopelessly out-of-date (nearly a decade
old), you might have better luck using a newer and better supported
system. Try the Liberty framework:
http://liberty.princeton.edu/
It has numerous useful features, including an IA64 emulator. This
means you can take a modern, stock GNU IA64 toolchain, build programs
with it, and run the resulting binary under Liberty.
Perhaps most importantly, it has a sane open source license and
developers that encourage collaboration.
jason. |
|
| Back to top |
|
 |
Hameed
Guest
|
Posted:
Fri Mar 04, 2005 3:45 am Post subject:
Building libg++ for gcc 2.7.2.3/g++-2.7.2.3 |
|
|
It seems that I didn't make my situation clear enough.
I have already a working gcc that is able to compile c progrms for
SimpleScalar PISA.It already have the glibc-1.0.6 which Todd Austin
provided for SimpleScalar PISA.
My main problem is that while g++ exists there it can't compile
anything successfully due to the lack of the header files an the
libraries. Therefore, this is my specific problem, I am missing the
libraries for g++ to build any non-trivial code.
I already downloaded libg++2.7.2 which is compatable with the gcc/g++ I
have. But this library doesn't know about "ssbig-na-sstrix" as a
canonical target in its configure script. To resolve this, I edited the
configure script similar to how Mark Oskin had edited the gcc2.7.2.3
configure scirpt to make it know about this new target. I am still
trying to build the library as of this email by reading the produced
Makefile and tweek it to work correctly through debugging the errors
one by one. Is that the way to go?!
If anyone thinks that I am going the wrong way, please let me know and
if you can provide a correction to what I am doing or you have built
the library before, by all means you expertise is highly appreciated.
Thanks very much.
Hameed. |
|
| Back to top |
|
 |
Brian Inglis
Guest
|
Posted:
Fri Mar 04, 2005 7:56 am Post subject:
Re: Compiling C++ benchmarks for SimpleScalar PISA targets. |
|
|
fOn Fri, 4 Mar 2005 03:23:38 +0000 (UTC) in comp.arch,
jle@ural.owlnet.rice.edu (Jason Lee Eckhardt) wrote:
| Quote: | In article <1109878457.569910.33980@z14g2000cwz.googlegroups.com>,
Hameed <sharshera@gmail.com> wrote:
Hello,
I have been able to build the latest gcc ported for PISA on
SimpleScalar which is 2.7.2.3 by Mark Oskin. It can build C programs
sucessfully but it couldn't build a hello_world type program in C++, it
is simply complaining about missing header files. I can't seem to find
any of the header files for C++ like iostream.h and the likes.
Apparently, the libraries for g++ were not ported with gcc 2.7.2.3
I am installing on a Sun Solaris box.
I wonder what would be the way to go to build libg++ although the
available source code and configure doesn't have support for
SimpleScalar.
Do I just configure it for MIPS or something like that and just point
the compiler to the simplescalar gcc and then debug it from there?
Any help or pointers would be greatly appreciated.
Rather than attempting to use a system that forces you to struggle
with a version of gcc that is hopelessly out-of-date (nearly a decade
old), you might have better luck using a newer and better supported
system. Try the Liberty framework:
http://liberty.princeton.edu/
It has numerous useful features, including an IA64 emulator. This
means you can take a modern, stock GNU IA64 toolchain, build programs
with it, and run the resulting binary under Liberty.
|
How does this relate to building benchmarks for a SimpleScalar PISA
target?
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian.Inglis@CSi.com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply |
|
| Back to top |
|
 |
Jason Lee Eckhardt
Guest
|
Posted:
Fri Mar 04, 2005 3:22 pm Post subject:
Re: Compiling C++ benchmarks for SimpleScalar PISA targets. |
|
|
In article <6suf21t5e4i2thdp79l7o8j4mtsqknkl9j@4ax.com>,
Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> wrote:
| Quote: | fOn Fri, 4 Mar 2005 03:23:38 +0000 (UTC) in comp.arch,
jle@ural.owlnet.rice.edu (Jason Lee Eckhardt) wrote:
In article <1109878457.569910.33980@z14g2000cwz.googlegroups.com>,
Hameed <sharshera@gmail.com> wrote:
Hello,
I have been able to build the latest gcc ported for PISA on
SimpleScalar which is 2.7.2.3 by Mark Oskin. It can build C programs
sucessfully but it couldn't build a hello_world type program in C++, it
is simply complaining about missing header files. I can't seem to find
any of the header files for C++ like iostream.h and the likes.
Apparently, the libraries for g++ were not ported with gcc 2.7.2.3
I am installing on a Sun Solaris box.
I wonder what would be the way to go to build libg++ although the
available source code and configure doesn't have support for
SimpleScalar.
Do I just configure it for MIPS or something like that and just point
the compiler to the simplescalar gcc and then debug it from there?
Any help or pointers would be greatly appreciated.
Rather than attempting to use a system that forces you to struggle
with a version of gcc that is hopelessly out-of-date (nearly a decade
old), you might have better luck using a newer and better supported
system. Try the Liberty framework:
http://liberty.princeton.edu/
It has numerous useful features, including an IA64 emulator. This
means you can take a modern, stock GNU IA64 toolchain, build programs
with it, and run the resulting binary under Liberty.
How does this relate to building benchmarks for a SimpleScalar PISA
target?
|
It relates by informing the poor guy of an alternative to the
frustration of struggling needlessly with an aging and very limited
system. |
|
| Back to top |
|
 |
Jason Lee Eckhardt
Guest
|
Posted:
Fri Mar 04, 2005 8:25 pm Post subject:
Re: Compiling C++ benchmarks for SimpleScalar PISA targets. |
|
|
In article <glbh211rt8d85ek88vv1t5iv5l4h2c5ih4@4ax.com>,
Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> wrote:
| Quote: | On Fri, 4 Mar 2005 15:22:51 +0000 (UTC) in comp.arch,
jle@ural.owlnet.rice.edu (Jason Lee Eckhardt) wrote:
In article <6suf21t5e4i2thdp79l7o8j4mtsqknkl9j@4ax.com>,
Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> wrote:
fOn Fri, 4 Mar 2005 03:23:38 +0000 (UTC) in comp.arch,
jle@ural.owlnet.rice.edu (Jason Lee Eckhardt) wrote:
In article <1109878457.569910.33980@z14g2000cwz.googlegroups.com>,
Hameed <sharshera@gmail.com> wrote:
Hello,
I have been able to build the latest gcc ported for PISA on
SimpleScalar which is 2.7.2.3 by Mark Oskin. It can build C programs
sucessfully but it couldn't build a hello_world type program in C++, it
is simply complaining about missing header files. I can't seem to find
any of the header files for C++ like iostream.h and the likes.
Apparently, the libraries for g++ were not ported with gcc 2.7.2.3
I am installing on a Sun Solaris box.
I wonder what would be the way to go to build libg++ although the
available source code and configure doesn't have support for
SimpleScalar.
Do I just configure it for MIPS or something like that and just point
the compiler to the simplescalar gcc and then debug it from there?
Any help or pointers would be greatly appreciated.
Rather than attempting to use a system that forces you to struggle
with a version of gcc that is hopelessly out-of-date (nearly a decade
old), you might have better luck using a newer and better supported
system. Try the Liberty framework:
http://liberty.princeton.edu/
It has numerous useful features, including an IA64 emulator. This
means you can take a modern, stock GNU IA64 toolchain, build programs
with it, and run the resulting binary under Liberty.
How does this relate to building benchmarks for a SimpleScalar PISA
target?
It relates by informing the poor guy of an alternative to the
frustration of struggling needlessly with an aging and very limited
system.
Nor really relevant when he wants to analyze the results of simulating
running benchmarks on a portable architecture, perhaps for info on
tuning a new architecture, for research, instructional purposes, or
just for marks.
|
Liberty is well suited to all these tasks-- and in a far more
flexible and powerful way than most of the other systems I've
seen or used. It is particularly nice for instruction or
research due to a well designed, well documented, and easy
to use (intuitive) framework.
I only mentioned the IA64 emulator (component) to illustrate that one
would not need a special, aging, unsupported toolchain to get real
research work done quickly. With the domain-specific modelling
language of Liberty, it is relatively simple to construct any ISA (or
indeed a full system) that one wishes. |
|
| Back to top |
|
 |
Brian Inglis
Guest
|
Posted:
Sat Mar 05, 2005 12:00 am Post subject:
Re: Compiling C++ benchmarks for SimpleScalar PISA targets. |
|
|
On Fri, 4 Mar 2005 15:22:51 +0000 (UTC) in comp.arch,
jle@ural.owlnet.rice.edu (Jason Lee Eckhardt) wrote:
| Quote: | In article <6suf21t5e4i2thdp79l7o8j4mtsqknkl9j@4ax.com>,
Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> wrote:
fOn Fri, 4 Mar 2005 03:23:38 +0000 (UTC) in comp.arch,
jle@ural.owlnet.rice.edu (Jason Lee Eckhardt) wrote:
In article <1109878457.569910.33980@z14g2000cwz.googlegroups.com>,
Hameed <sharshera@gmail.com> wrote:
Hello,
I have been able to build the latest gcc ported for PISA on
SimpleScalar which is 2.7.2.3 by Mark Oskin. It can build C programs
sucessfully but it couldn't build a hello_world type program in C++, it
is simply complaining about missing header files. I can't seem to find
any of the header files for C++ like iostream.h and the likes.
Apparently, the libraries for g++ were not ported with gcc 2.7.2.3
I am installing on a Sun Solaris box.
I wonder what would be the way to go to build libg++ although the
available source code and configure doesn't have support for
SimpleScalar.
Do I just configure it for MIPS or something like that and just point
the compiler to the simplescalar gcc and then debug it from there?
Any help or pointers would be greatly appreciated.
Rather than attempting to use a system that forces you to struggle
with a version of gcc that is hopelessly out-of-date (nearly a decade
old), you might have better luck using a newer and better supported
system. Try the Liberty framework:
http://liberty.princeton.edu/
It has numerous useful features, including an IA64 emulator. This
means you can take a modern, stock GNU IA64 toolchain, build programs
with it, and run the resulting binary under Liberty.
How does this relate to building benchmarks for a SimpleScalar PISA
target?
It relates by informing the poor guy of an alternative to the
frustration of struggling needlessly with an aging and very limited
system.
|
Nor really relevant when he wants to analyze the results of simulating
running benchmarks on a portable architecture, perhaps for info on
tuning a new architecture, for research, instructional purposes, or
just for marks.
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian.Inglis@CSi.com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply |
|
| Back to top |
|
 |
Hameed
Guest
|
Posted:
Sat Mar 05, 2005 7:58 am Post subject:
Re: Compiling C++ benchmarks for SimpleScalar PISA targets. |
|
|
Hey Guys,
I was able to build the library with relative ease but I am still to
test it so hopefully it will be fine.
Thanks very much and apparently my question stirred a hot discussion
about what tools and frameworks ae the most suitable.
I don't know much about librety before Jason's email but another viable
solution in my view is something like Simics with some timing
infrastructure like those of the Multifacet group of Wisconson.
Another point, the nice thing about SimpleScalar is that it is very
well-known, people trust its results in general and most importantly
researchers have worked with it for a long time and hence they know its
limitations and it capabilities very well and people are the enemies of
what they don't know.
It is probable that Librety and CCCP and the likes are very good but if
not much people buy in their ideas and tools they just will pass
un-noticed.
Hameed. |
|
| Back to top |
|
 |
|
|
|
|