On Monday 28 February 2011, MS wrote: > ----- Original Message ----- > From: "Alexander Neundorf" <[email protected]> > To: <[email protected]> > Cc: "MS" <[email protected]> > Sent: Friday, February 25, 2011 4:50 PM > Subject: Re: [CMake] Cmake + Cosmic Compiler > > > On Friday 25 February 2011, MS wrote: > >> Hi > >> Does anybodyknow whether it would be possible to use cross compiler > >> "Cosmic > >> Compiler" together with CMake under Windows? > >> > >> Cosmic consists of compiler(cxs12x.exe), xgate compiler(cxxgate.exe), > >> linker(clnk.exe). XGATE is another processor within one integrated > >> circuit. > >> So the build process consists of > >> 1. compiler execution > > > > Ok. > > > >> 2. xgate compiler execution > > > > What does this do, i.e. what is its input and what is its output ? > > This microcontroller contains two "cores", for each of the cores is > different compiler. After everything is compiled all is linked to one > fiele. The xgate compiler > compiles interrupt service routines for xgate core.
Interesting. And the input files for the xgate compiler are also plain C files ? In general, using different compilers for the same language is not supported by cmake, or using compilers for different architectures within one build tree. You can probably work around that by defining your xgate-input files as a different language. If they have the same extension (i.e. .c) I think you can use set_source_files_properties() to override the language of a source file. <hack> Since you don't have support for C++ in your projects, maybe you could define the C++ support for the xgate compiler ? I.e. set up the CXX variables so that they work for the xgate stuff, and mark the xgate input files via set_source_files_properties() to CXX ? </hack> ... > > Linking is done via the CMAKE_C_LINK_EXECUTABLE variable (see the files > > in Modules/ for it is set for the currently supported compilers). > > I.e. you can basically set this to whatever you want, including checking > > for a > > CMAKE_LINKER and use that one. > > > > Alex > > what about ABI determination in this case. Is it supported on Generic > systems? Would have to check... I think you'll see when you try :-) What do you need it for ? Alex _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
