473,412 Members | 4,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

templates in mixed compilands in VC 7.1


We have some large mixed .dlls. The percentage of code that is managed is
small relative to the percentage of native code. We generally want to favor
native callers. But I am struggling with the phenomenon where the mere use
inclusion of headers that contain templates in /CLR compilands seems to result
in methods of template instations ending up getting compiled into IL and
thus penalizing native callers. This is not at all what I want and I'm in
the hunt for a way to make this stop.

I can take a /CLR compiland and aribrarily add an #include <someTemplateHeavyHeader.h>
to it and observe the number of template instantiation methods that are compiled
into IL in my assembly increase dramatically. This seems very odd to me.
Here the compiland clearly doesn't use any information in the header. Afterall
it compiles fine without it. I merely added it to an aribtrary compiland
to see the damage it would cause. Furthermore I included the header file
in a #pragma unmanaged section of the compiland.

Please advise.

I saw googled this but was unable as-of-yet to make the suggested workaround
do any good for me. Maybe I just need more detail on how to do it: http://groups-beta.google.com/group/...80ed99bd0a1184

Bern McCarty
Bentley Systems, Inc
Nov 17 '05 #1
7 1111
Hi Bern,

Currently I am consulting this issus with our VC experts, if we have any
workaround regarding this, I will update you as soon as possible.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #2
Hi Bern,

By now I haven't found a practical solution on this issue, it appears we
need to contact a PSS support engineer to work on this problem.

So would you please tell me do you still monitor this issue?
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #3

Oh yes. I am very eager to find some way to control/work-around this problem.
For the moment I've written a little Python program that processes ildasm
output just to produce the list of global functions compiled into IL. I
check the results into our source so that we can track how this is changing.

But I really need at least a methdology to employ to help pinch this problem
off where I need to. When the mere inclusion of headers makes you go south,
you're in trouble.

Thanks.

-Bern

Hello Gary Chang[MSFT],
Hi Bern,

By now I haven't found a practical solution on this issue, it appears
we need to contact a PSS support engineer to work on this problem.

So would you please tell me do you still monitor this issue?

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...esks/msdn/nosp
am.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no
rights.


Nov 17 '05 #4
Hi Bern,

Considering you just contacted our premier support consulant Peter on this
issue, would you please tell me have you already raise a support case with
him? If not I will create one on our side.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #5

Peter is waiting on a test case from me and then he'll open a case on it
for me from his side.

Thanks for looking at this.

-Bern

Hello Gary Chang[MSFT],
Hi Bern,

Considering you just contacted our premier support consulant Peter on
this issue, would you please tell me have you already raise a support
case with him? If not I will create one on our side.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...esks/msdn/nosp
am.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no
rights.


Nov 17 '05 #6
That's OK Bern, wish you you will get a satisfying workaround from Peter:)
Good Luck!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #7
That's OK Bern, wish you you will get a satisfying workaround from Peter:)
Good Luck!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Perttu Pulkkinen | last post by:
No questions, but just consider if this is useful to you:-) but of course feedback & corrections are welcome. function php_mixed_to_js_value($jsname, $mixed) { if(is_null($mixed)) { return "\n...
1
by: Mike Grigorov | last post by:
I am using cheetah with jython 2.1 and I have problem generating templates that contain cyrillic text. Some texts are printed OK and others are not. I searched Jython and cheetah projects mailing...
9
by: Anthony Heading | last post by:
Hi all, I've often found myself wanting to write code like the example here. Since both MSVC and gcc both reject it, I suspect it is indeed illegal. gcc: no type named `Name' in `class...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
1
by: Bern McCarty | last post by:
Our project consists of some mixed .dlls and recently we noticed that it had slowed down. When I investigated I figured out that some inlineable methods of a native C++ type were compiled into (not...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
23
by: Ben Voigt | last post by:
I have a POD type with a private destructor. There are a whole hierarchy of derived POD types, all meant to be freed using a public member function Destroy in the base class. I get warning C4624....
5
by: Zeppe | last post by:
Hi all! my problem is this one, I think that it could be a common one, maybe a pattern, so if you can help me somehow it would be great. Let's suppose I have a class Base class Base { //...
15
by: bruno.desthuilliers | last post by:
On 27 juin, 18:09, "John Salerno" <johnj...@NOSPAMgmail.comwrote: For which definitions of "content" and "logic" ??? The point of mvc is to keep domain logic separated from presentation logic,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.