473,387 Members | 1,431 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,387 software developers and data experts.

Visual Studio stdcall and disassembly.

I'm having a problem regarding the assembly code with stdcall.
"int main(void)
{
00F213A0 push ebp
00F213A1 mov ebp,esp
00F213A3 sub esp,0C0h
00F213A9 push ebx
00F213AA push esi
00F213AB push edi
00F213AC lea edi,[ebp-0C0h]
00F213B2 mov ecx,30h
00F213B7 mov eax,0CCCCCCCCh
00F213BC rep stos dword ptr es:[edi] \
... "
I want that the commands will be just push ebp mov ebp,esp and then disassembly the other commands in the block, as cdecl basic convention is defined. I guess it is some sort of optimization but I couldn't find a way to cancel it. How can I do it?

Thanks,
Eyal.
Dec 22 '09 #1
6 3116
solita
17
You can disable optimization in the c/cpp tab of project settings of vcpp
Dec 22 '09 #2
I've already checked this tab and none of them are enabled.

Thanks.
Dec 22 '09 #3
weaknessforcats
9,208 Expert Mod 8TB
Use your project properties to set the calling conventioon to __cdecl.
Dec 22 '09 #4
I attach the project optimization and and advanced tabs:
1. advanced
http://img96.imageshack.us/img96/2953/1232k.jpg
2. optimization
http://img51.imageshack.us/img51/5452/85742827.gif
Dec 22 '09 #5
weaknessforcats
9,208 Expert Mod 8TB
Yes, that's what I would have done.
Dec 22 '09 #6
Well, I did it yesterday and I reset all VS settings. Still it doesn't work.
Any ideas?
Dec 22 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: John Smith | last post by:
Sorry if this is the wrong forum... Does anyone know what the difference is between a debug build and an optimised debug build in Visual Studio 2003?
0
by: C Newby | last post by:
I don't know what i did, but when I run a windows form application from the Visual Studio debugger, a new tab shows up in the main document tab space with the title "Disassembly". This, as i...
23
by: Rob Meade | last post by:
Hi all, I think I may have created a bit of a problem earlier with some of my classes.... I *think* that I may have inherited a class that was inheriting that class - endless loop kinda...
4
by: Matthew | last post by:
I had an error in a program I was working on. A dialog box came up saying "do you want to view Disassembly?" I clicked OK just for the fun of it, and now every time I run the program it opens a...
1
by: Nathan Mates | last post by:
I'm using VS.NET 2005SP1 (C++ Express, though I've also seen this on 2005 Standard SP1). One bit of behavior that's been bugging me a lot, and seems to have gotten worse with SP1, is that if it...
1
Digital Don
by: Digital Don | last post by:
Hi, I have been using Visual Studio 2005 for 5 months now and quite a few time I have come across a problem which is, when I write a program and try to debug and trace the error/problem in the...
11
by: Herhor | last post by:
Hello! I have already started C++ programming with VC++ 2005 Express Edition. Unfortunately during debugging one of my first programs I had to unintentionally enable some debugger configuration...
2
by: Gillard | last post by:
hello I get a dll with standard call in C ++ but I really do not know how to use it in VB anyone can help??? there is the declarations in cpp to use the functions #ifndef SFPDF_H #define...
0
by: John Peterson | last post by:
I'm a little confused by the topics system here. I wanted to respond to this post but it was closed or something. But here is my follow up: Yes, I checked all that. My solution is a C++...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.