Help :: Stuck with YASM and VS 2005
John Seth Thielemann
sthielemann at bitleap.com
Wed Aug 8 06:07:03 PDT 2007
Utkal;
Just taking a quick look at the source and your comments, it looks and
sounds like an ABI issue. RDI holds the first argument parameter under
Linux-64, however under Windows-64, the RCX register holds the first
argument parameter. For more information that might help:
http://www.agner.org/optimize/ you may be interested in manual 2, 5 for
this problem.
Hope I that I may have helped,
~Seth
Utkal Ranjan Pradhan wrote:
>
> 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/images/results.aspx?q=Eva%20Longoria&form=MIDGPS%0d%0a>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> yasm-devel mailing list
> yasm-devel at tortall.net
> http://cvs.tortall.net/mailman/listinfo/yasm-devel
>
More information about the yasm-devel
mailing list