473,320 Members | 2,146 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,320 software developers and data experts.

/RTCs compiler option

Hello,

I have a problem with my C++ code in that my code is faster in Debug
mode than in Release mode. The reason for this are calls upon
routines from a C compiled lib that I am using (Umfpack).

When I compile my code with the /RTCs option (like in Debug mode) the
Umfpack routines I call upon are fast.

When I do not use /RTCs but the "default" option of Visual Studio
.NET,
the Umfpack routines I call upon are very slow (however I link with
the same Umfpack_43.lib file).

Does anybody know what might be the problem?

Thanks,
Bert

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 17 '05 #1
2 1190

"bpluymer" <be***********@belgacom-dot-net.no-spam.invalid> wrote in message
news:41********@Usenet.com...
Hello,

I have a problem with my C++ code in that my code is faster in Debug
mode than in Release mode. The reason for this are calls upon
routines from a C compiled lib that I am using (Umfpack).

When I compile my code with the /RTCs option (like in Debug mode) the
Umfpack routines I call upon are fast.

When I do not use /RTCs but the "default" option of Visual Studio
NET,
the Umfpack routines I call upon are very slow (however I link with
the same Umfpack_43.lib file).

Does anybody know what might be the problem?

Thanks,
Bert

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*


How weird. Here's a wild guess. Let's assume there are two versions of
umpack, debug and release. LEts also assume that your release version calls
the dbug version of umfpack. Now, I don't know well hoew debuggers work
interbnally but I guess there's code within that sets up certain things. My
guess is that each call to umfpack would force it do the setup and that is
lost afterwards. The debug version of your code retains these settings. Does
this make sense?

/ Fredrik
Nov 17 '05 #2
Hi Fredrik,

I understand what you mean, but linking to the debug version of
Umfpack does not change the behaviour. Well it does in the sense that
everything becomes slower, but calls made with the /RTCs are still a
lot faster than calls made without it.

Regards,
Bert

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 17 '05 #3

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

Similar topics

188
by: Ilias Lazaridis | last post by:
I'm a newcomer to python: - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 - I've download (as suggested) the python...
2
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
4
by: Christopher M. Lusardi | last post by:
Hello, Can I run the subject line program using CC instead of cc? I attempted to use the "-c" option and it told me things were undefined. Isn't this CC option the same as the cc -c option? ...
3
by: babak | last post by:
Hi I am running a project in eVC 4.0 and I have been running into a bug that only appears in the release build of the project. I eventually found out that when I had the compiler option /Od set...
5
by: rawCoder | last post by:
Hi All, In Visual Basic .NET , your function definition might requirre you to return a value but (accidently/intentionally) you dont put any 'return value' in the function. In this case VB...
19
by: David W | last post by:
float nanometers(long pm) { return pm / 1000.0f; } void f() { if(nanometers(309311L) == nanometers(309311L)) { // do something }
8
by: Chameleon | last post by:
I have a TGA image header struct. TGA has 18 bytes header, so the C struct too. why this return 20? sizeof(TGAHeader) I saw this in many structs. I believe compiler round up the size to 4...
4
by: =?Utf-8?B?UGl0Rw==?= | last post by:
Here the facts as code sample: Public Class Class1 Sub ABC(ByVal item As IUnit) End Sub End Class Public Interface IUnit ' or any other Interface ReadOnly Property Heureka() As Activator...
15
by: Armin Zingler | last post by:
Hi, after dealing with the new possiblities of the current VB version, I again and still wonder why Option Infer can not be used with Option Strict On at class level, i.e. when declaring a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.