64 bit programming issue...
-
Hi, I am currently porting 64 bit application with C and Assembly code (x86-64) from Linux to windows. I am using Microsoft C-Compiler 2005 and Yasm for compiling C and assembly code respectively. I have modified the assembly files as per the 64-bit ABI specification for windows and i do get expected results when i use “RTCs” flag which is meant for stack pointer verification. This flag also requires optimization flags to be turned off. The problem starts when i dont use the “RTCs” (which is the case in release version) it tries to access initial locations (0×04a0) of memory in C-code. I suspect that it has something to do with calling convention mismatch when control gets transferred from assembly to C-function. Any help in this regard would be highly appreciated. With warm regards, KEDAR