----- 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.

3. linker execution - that links 1. and 2. part into one binary

1. When defining cmake toolchain it asks for CXX and C compilers - but we
have only one C compiler(cxs12x.exe), how to force CMake to not to use C++
compiler

Do you mean there is no Cosmic C++ compiler and the projects are C-onlys, so
cmake should not check at all for CXX ?

Do this by adding a project() call at the toplevel with the languages you want
to have (i.e. C):

project(MyProject C)

This way cmake will only enable C (and not CXX).

2. Where to set XGate compiler

I do not yet understand what this compiler does, see above.

3. Linker executable is not the same as compiler executable - is it
possible to set linker variable in CMake separately from compiler variable

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?


Thx
_______________________________________________
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

Reply via email to