Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / December 2004

Tip: Looking for answers? Try searching our database.

cl.exe  /G7 option problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SLASH - 22 Dec 2004 03:21 GMT
when i open /G7 option, compiler optimize float to long data cast instead of
calling _ftol2 function.But make some mistake when float = 0xffffffff; long
will be 0x80000000.
Assembly code:
00401032  mov         eax,dword ptr [yy]
00401035  mov         dword ptr [ebp-158h],eax
0040103B  mov         dword ptr [ebp-154h],0
00401045  fild        qword ptr [ebp-158h]
0040104B  mov         ecx,dword ptr [p]
0040104E  fmul        dword ptr [ecx]
00401050  fnstcw      word ptr [ebp-15Ah]
00401056  movzx       eax,word ptr [ebp-15Ah]
0040105D  or          ah,0Ch
00401060  mov         dword ptr [ebp-160h],eax
00401066  fldcw       word ptr [ebp-160h]
0040106C  fistp       dword ptr [ebp-164h]
00401072  fldcw       word ptr [ebp-15Ah]
00401078  mov         edx,dword ptr [ebp-164h]
0040107E  mov         dword ptr [xx],edx
Gabest - 22 Dec 2004 12:14 GMT
I had a very similar problem not long ago. Though I haven't received any
replies yet.

http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vc/browse_
thread/thread/e99a5f8bee32698a/571d8eb04f87fb10


( http://tinyurl.com/4neow )

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.