Hi,
can i just add additional sources of the xc compiler to some gcc source directory (extracted from tarball from gcc.gnu.org) and activate its build with ./configure --enable-languages=c,c++,xc (e.g.)?
I remember for "D" Compiler from http://www.digitalmars.com you can do it this way (see https://bitbucket.org/goshawk/gdc/wiki/Home).
However the download package for the xc compiler seems to include all.
- thanks!
best regards,
Frank
gcc build with ./configure --enable-languages=c,c++,xc
-
- Member
- Posts: 8
- Joined: Sun Aug 14, 2011 10:19 am
-
- Respected Member
- Posts: 318
- Joined: Tue Dec 15, 2009 12:46 am
The compiler source on http://www.xmos.com/products/design-tools-source is for the C / C++ compilers only. The XC compiler is not GCC based and the source code of this compiler is not available.
-
- Member
- Posts: 8
- Joined: Sun Aug 14, 2011 10:19 am
Hi Richard,
I also meanwhile downloaded the XDE.
For that i saw, that you have a complete package with everything within.
(i was really suprised to see this amazing package in operation).
And i guess it's better to provide this way.
Then you don't have to answer a lot of questions about build problems for people trying to do themselves.
- thanks!
regards,
Frank
Ok, i see.richard wrote:The compiler source on http://www.xmos.com/products/design-tools-source is for the C / C++ compilers only. The XC compiler is not GCC based and the source code of this compiler is not available.
I also meanwhile downloaded the XDE.
For that i saw, that you have a complete package with everything within.
(i was really suprised to see this amazing package in operation).
And i guess it's better to provide this way.
Then you don't have to answer a lot of questions about build problems for people trying to do themselves.
- thanks!
regards,
Frank
-
- XCore Expert
- Posts: 844
- Joined: Sun Jul 11, 2010 1:31 am
None of the compilers are, they are LLVM. Or did that change?richard wrote:The XC compiler is not GCC based
-
- Respected Member
- Posts: 318
- Joined: Tue Dec 15, 2009 12:46 am
It depends which bit of the compiler you are talking about. The C/C++ compiler uses a frontend derived from GCC 4.2 (llvm-gcc). The backend of the compiler (optimisation passes, code generation) is all LLVM based.segher wrote:None of the compilers are, they are LLVM. Or did that change?