64 bit programming issue...

Kedar Potdar kedar.potdar at gmail.com
Fri Aug 24 00:10:58 PDT 2007


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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cvs.tortall.net/pipermail/yasm-devel/attachments/20070824/1c17510a/attachment.html 


More information about the yasm-devel mailing list