gcc build with ./configure --enable-languages=c,c++,xc

Technical questions regarding the XTC tools and programming with XMOS.
FBergemann
Member
Posts: 8
Joined: Sun Aug 14, 2011 10:19 am

gcc build with ./configure --enable-languages=c,c++,xc

Post by FBergemann »

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


richard
Respected Member
Posts: 318
Joined: Tue Dec 15, 2009 12:46 am

Post by richard »

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.
FBergemann
Member
Posts: 8
Joined: Sun Aug 14, 2011 10:19 am

Post by FBergemann »

Hi Richard,
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.
Ok, i see.
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
User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am

Post by segher »

richard wrote:The XC compiler is not GCC based
None of the compilers are, they are LLVM. Or did that change?
richard
Respected Member
Posts: 318
Joined: Tue Dec 15, 2009 12:46 am

Post by richard »

segher wrote:None of the compilers are, they are LLVM. Or did that change?
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.