Help :: Stuck with YASM and VS 2005

Utkal Ranjan Pradhan urpradhan at gmail.com
Wed Aug 8 04:32:24 PDT 2007


Hi

 

I’m using __cdecl (/Gd) calling convention in Visual Studio 2005.

 

 

Thank You;

URPradhan At Gmail Dot Com

 

From: Stefan Sellmer [mailto:stefansel at hotmail.de] 
Sent: Wednesday, August 08, 2007 3:29 PM
To: Utkal Ranjan Pradhan; yasm-devel at tortall.net
Subject: RE: Help :: Stuck with YASM and VS 2005

 

which calling convention  do you use ??
the same in both compiling steps ? 
 
best regards,Stefan 




  _____  

To: yasm-devel at tortall.net
Subject: Help :: Stuck with YASM and VS 2005
Date: Wed, 8 Aug 2007 15:23:55 +0530
From: urpradhan at gmail.com

Friends

 

I’m using YASM (latest version) for my GAS syntax (SSE2) assembly files in
Windows 64-bit environment.

And I’m using the command like: yasm-win64.exe –p gas –f win64 *.s , which
creates the *.obj files for me perfectly.

But after linking these *.obj files to my exe application (I’m using Visual
Studio 2005) , I’m getting RUN TIME error like: Unhanded Exception

 

Note that the same assembly file is getting compiled and the application is
perfectly running in 64-bit Linux using GCC compiler.

 

While debugging my application in VS 2005, I got the particular place where
I’m getting this error, but as I do not know much about assembly coding I
need your help.

I’m listing the assembly code below and marking the place where I’m getting
this error at run time.

 

push %rbp

        movq %rsp,%rbp

        push %rbx

 

        emms

 

        push %r12

        push %r13

        push %r14

        push %r15

 

        subq $408,%rsp          ## local variable stack space (n*16+8)

 

        ## zero 32-bit iteration counters

        movl $0,%eax

        movl %eax,nb110_nouter(%rsp)

        movl %eax,nb110_ninner(%rsp)

 

        movl (%rdi),%edi  ç================================= Getting Error
at this place

        movl %edi,nb110_nri(%rsp)

        movq %rsi,nb110_iinr(%rsp)

        movq %rdx,nb110_jindex(%rsp)

        movq %rcx,nb110_jjnr(%rsp)

        movq %r8,nb110_shift(%rsp)

        movq %r9,nb110_shiftvec(%rsp)

        movq nb110_p_ntype(%rbp),%rdi

        movl (%rdi),%edi

        movl %edi,nb110_ntype(%rsp)

        movq nb110_p_facel(%rbp),%rsi

        movsd (%rsi),%xmm0

        movsd %xmm0,nb110_facel(%rsp)

 

 

Hope to get suitable replies from this forum.

 

 

 

 

Thank You;

URPradhan At Gmail Dot Com

 

 

  _____  

WOW – schöne Bilder von Eva Longoria! Hier klicken! Live Search
<http://redirect.gimas.net/?cat=hmtl&n=parisR&d=http://search.live.com/image
s/results.aspx?q=Eva%20Longoria&form=MIDGPS%0d%0a> 

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


More information about the yasm-devel mailing list