Help :: Stuck with YASM and VS 2005

Utkal Ranjan Pradhan urpradhan at gmail.com
Wed Aug 8 03:20:04 PDT 2007


Thank you friend for your reply first.

 

Yes, I use the following steps in both cases:

 

For Win-64 Plat form:

=============

1.     Yasm-win64.exe –p gas –f win64 *.s

2.     Then using the generated *.obj file with other  *.c and *.h files and
creating the library (*.lib) in Vs 2005, using option /MT

3.     Using my library I’m building my *.exe which gives run time error 

 

For Linux-64 Platform:

==============

1.     Using GCC creating the library

2.     Using the library, building the binary, which is working perfectly
fine

 

 

Now, I have gone through the YASM wiki page
(http://www.tortall.net/projects/yasm/wiki/VisualStudio2005), where it has
been mentioned that: 

There appears to be a linker bug in the VC++ v8 linker that prevents symbols
with absolute addresses being linked in DLL builds.

 

 

Plz help me.

 

 

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/1d1a7959/attachment.html 


More information about the yasm-devel mailing list