Bug 2712 - CIAO footprint reduction idea
Summary: CIAO footprint reduction idea
Status: RESOLVED WONTFIX
Alias: None
Product: CIAO
Classification: Unclassified
Component: CIAO Container Implementation (show other bugs)
Version: 0.5.3
Hardware: All All
: P3 normal
Assignee: Will Otte
URL:
Depends on:
Blocks: 3253 3578
  Show dependency tree
 
Reported: 2006-11-16 15:24 CST by Abdul Sowayan
Modified: 2010-09-16 07:46 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abdul Sowayan 2006-11-16 15:24:40 CST
Speaking of breaking the code into multiple smaller files, and letting the 
linker choose whether to link it in or not. In my own CIAO application, I 
instructed the IDL compiler to suppress the generation of any and typecode 
support. That saved around 100k in the resulting executable size. I noticed 
that the IDL compiler has a -GA option, which instead of suppressing any and 
typecode support, it will generate them in a different cpp/h file *A.cpp/h.

So here is my thought. The TAO core already comes out of the box compiled 
with -GA option. CIAO does not, which means I can't even compile my 
application with the -GA option because it will look for the corresponding 
*A.h headers in the CIAO core.

If I compile all of CIAO and my application with -GA option and let the linker 
choose whether it needs this stuff or not, that will probably yield a smaller 
executable size, right? I was going to try to test this, but I have no idea 
how to do a whole-sale option change of options (that is, I don't know how to 
force TAO/CIAO to build all projects with the -GA option).

Thanks,
Abdul
Comment 1 Abdul Sowayan 2006-11-16 15:25:18 CST
Yes, that is true. The thing you can try is to add -GA to idlflags in 
TAO/CIAO/ciao/CCM_Core.mpc, regenerate the makefiles and rebuild. I will try 
this also when I am ready with my current refactoring.

Johnny
Comment 2 Abdul Sowayan 2006-11-16 15:25:32 CST
Hi,

I think the -GA will not out of the box. When an idl file is generated with -
GA any other file that includes this idl file should include the A.h file 
also. This is done based on the pidl extension and the fact that the pidl file 
is under TAO/tao. Probably it will be some more work to use this for CIAO.

Johnny
Comment 3 Abdul Sowayan 2006-11-16 15:25:53 CST
Hi Jeff,

   Can you please help out Johnny here?
   
   Thanks,
   
        Doug
Comment 4 Johnny Willemsen 2006-11-17 05:27:48 CST
Possible this could be doable using the following steps:
- Let the user include just .idl from CIAO/ciao
- All smaller idl files that are located in CIAO/ciao which we want to build
with -GA have to be renamed to .pidl. When they have the .pidl extension at the
moment another IDL files includes them a A.h include is generated
- The include of the pidl file should start with "ciao/". This way the IDL
compiler doesn't add a AnyTypeCode prefix
Comment 5 Johnny Willemsen 2006-11-17 05:30:10 CST
accept
Comment 6 Johnny Willemsen 2006-11-22 14:43:02 CST
seems tao_idl always preprends tao/ for includes related to .pidl files, that is
not correct, have to make something more clever.
Comment 7 Johnny Willemsen 2007-04-11 06:08:57 CDT
to pool
Comment 8 Johnny Willemsen 2010-09-16 07:46:18 CDT
wont fix, this will not be a maintainable solution, lwccm and micro ccm are much more promising