Skip to main content



      Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Proper way to configure C only target
Proper way to configure C only target [message #1970] Tue, 31 March 2009 22:27 Go to next message
Eclipse UserFriend
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] Tue, 31 March 2009 23:00 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 01 April 2009 20:11 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 01 April 2009 20:13 Go to previous message
Eclipse UserFriend
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: Sun Apr 27 01:12:28 EDT 2025

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

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

Back to the top