Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » Proper way to configure C only target
Proper way to configure C only target [message #1970] Wed, 01 April 2009 02:27 Go to next message
Amichi Amar is currently offline Amichi AmarFriend
Messages: 5
Registered: July 2009
Junior Member
Hello,

I'm trying to develop for a target that doesn't support C++.

When xdc.runtime is built for my target it seems to build and use
xdc_init.cpp by default.

What is the proper way to specify that I want to only build and include
xdc_noinit.c into my target runtime library?

Thanks.

Amichi
Re: Proper way to configure C only target [message #1984 is a reply to message #1970] Wed, 01 April 2009 03:00 Go to previous messageGo to next message
Amichi Amar is currently offline Amichi AmarFriend
Messages: 5
Registered: July 2009
Junior Member
I think I figured it out. If someone can confirm that would be great.

In the package.bld script within the rts folder for my target there was a
line that said lib.addObjects(RtsBuild.objs), I changed this to
lib.addObjects(RtsBuild.c_objs) which reflects the proper file that was
aggregated inside xdc/runtime/build.xs

Cheers,

Amichi
Re: Proper way to configure C only target [message #1998 is a reply to message #1970] Thu, 02 April 2009 00:11 Go to previous messageGo to next message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Amichi Amar wrote:
> Hello,
>
> I'm trying to develop for a target that doesn't support C++.
> When xdc.runtime is built for my target it seems to build and use
> xdc_init.cpp by default.
> What is the proper way to specify that I want to only build and include
> xdc_noinit.c into my target runtime library?
> Thanks.
>
> Amichi
>
>
Yes. Unfortunately the RTSC-Pedia appears to be down right now so I
can't point you to the online docs. But the "Rebuilding Just the C
Sources" topic describes how to do this.

This topic can also be found in the xdctools.chm file located in the
docs sub-directory of the xdctools distribution.
Re: Proper way to configure C only target [message #2011 is a reply to message #1984] Thu, 02 April 2009 00:13 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Amichi Amar wrote:
> I think I figured it out. If someone can confirm that would be great.
>
> In the package.bld script within the rts folder for my target there was
> a line that said lib.addObjects(RtsBuild.objs), I changed this to
> lib.addObjects(RtsBuild.c_objs) which reflects the proper file that was
> aggregated inside xdc/runtime/build.xs
> Cheers,
>
> Amichi
>
Right. The "Using xdc.runtime Within C-Only Environments" topic in the
User's Guide explains a bit more about what's going on.
Previous Topic:How to include opts-file?
Next Topic:RTSC-Pedia is down until next week
Goto Forum:
  


Current Time: Fri Dec 19 18:25:31 GMT 2014

Powered by FUDForum. Page generated in 0.09751 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software