Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Packing
Packing [message #2106] Sat, 18 April 2009 18:22 Go to next message
Vinayaka is currently offline VinayakaFriend
Messages: 1
Registered: July 2009
Junior Member
Hello,

I have 4 separate image for 4 samples (test cases)

I want them in one single image and how do i proceed with the .bld , .cfg
, .xdc files etc,

i thought of making all the samples as lib file and calling all of them
for main function in single module,

Any help would be highly appreciated

thanks
Re: Packing [message #2165 is a reply to message #2106] Mon, 20 April 2009 20:38 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Vinayaka wrote:
> Hello,
>
> I have 4 separate image for 4 samples (test cases)
> I want them in one single image and how do i proceed with the .bld ,
> .cfg , .xdc files etc,
If I understand your question, you want to take 4 currently separate
executables (test programs) and combine them int a single executable
that performs the 4 tests.

The first thing you'll have to do is create a single .cfg file that
works for all four tests; each executable has just one config file.
Depending on the current .cfg files, you may have to defer some
operations to runtime.

Once you have a single .cfg for each program, you'll have to rename
main() in each test to a unique name and create a new main() that simply
calls the newly named main()'s as necessary. This new main() and the
new .cfg can be used to create a new executable that runs all 4 tests.

For what it's worth: Each module can have a main() method and this main
method can be configured to be the executable's main entry point;
http://rtsc.eclipse.org/cdoc-tip/index.html#xdc/cfg/Program. html#main

So what? Well, if you follow this pattern it is relatively easy to
create an executable that runs a module's test _or_ create a test that
runs more than one module test. This allows you to maintain and run the
original tests one at a time; sometimes useful when dealing with
resource constrained platforms or when you are trying to debug why a
test fails. At the same time one can easily create a single test that
runs multiple tests without having to modify the original tests (because
as module methods each main function has a unique name that is easily
called from an application.
>
> i thought of making all the samples as lib file and calling all of them
> for main function in single module,
>
> Any help would be highly appreciated
>
> thanks
>
Previous Topic:Package path containing whitespace
Next Topic:EclipseCon 2009 tutorial sources and slides are available from the RTSC source repository
Goto Forum:
  


Current Time: Tue Mar 19 04:55:58 GMT 2024

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

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

Back to the top