[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dsdp.rtsc] Re: XDC on Mac OS X

Amichi Amar wrote:
Hello,

I'd like to use the XDC tools on my Mac and would like to help getting the toolset working on OS X.
Are the sources and instructions on how to build the suite available? I understand there is a bootstrap process somewhere as some xdc tools are built with xdc.
I working on getting the sources through the eclipse IP process. We have one of two source trees approved at this point and, while it has taken a while to get this far, I expect the second tree to go more quickly.

There is a bootstrap to build the RTSC tools because we use the RTSC tools to build itself.
If someone could help out a little we could get a good amount of folks using Macs working with RTSC.

It is possible to help out now. The RTSC tools include a number of native executables (e.g., xs, xdc, and xdcpkg, see http://rtsc.eclipse.org/docs-tip/Command_Line_Tools). One of the first steps in the bootstrap is build these commands using the RTSC build engine. In order for this to happen, we need a target and a platform for OS X.

Part 2 of the RTSC tutorial provides an overview and examples of what is required, but native targets are often _much_ easier that targets for embedded platforms. My guess is that there is a gcc compiler for OS X, so it should be easy to create a target that inherits from gnu.targets.ITarget. Since it's ok to only support Intel-based Macs (at least initially), we can probably just use the host.platforms.PC platform.

Once we have an OS X target, we can either put it in the gnu.targets package or create a new package and maintain it in http://dev.eclipse.org/svnroot/dsdp/org.eclipse.rtsc/contrib/targets/trunk. The complete sources to the gnu.targets package are included in any XDCtools distribution (and will eventually be maintained in our eclipse SVN repository).

Beyond targets and platforms, there are a few other packages that will have to be extended to support OS X; e.g., all the graphical tools rely on SWT (which relies on some native code) but I assume the native code required for OS X already exists.

Bottom line: a good first step is to create a target and platform that builds one of the tutorial "hello world" examples (http://dev.eclipse.org/svnroot/dsdp/org.eclipse.rtsc/training/ec2009/trunk/src/part2/examples/hello) to run natively on OS X.
Cheers,

Amichi