Compile inline assembly with mingw on Windows

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Compile inline assembly with mingw on Windows

Postby kung foo man » Sun Nov 22, 2015 6:43 pm

Hi, I try to compile an old version of coreLibrary_200/source/core/dgTypes.cpp with g++ on Windows, but it is using Intel assembly syntax:

Code: Select all
#ifndef _WIN_32_VER
 dgFloat32 dgAbsf(dgFloat32 x)
{
   _asm fld   x;
   _asm fabs   ;
   _asm fstp   x;
   return x;
}

...

#endif



But how am I supposed to compile it? Since there seems to be only a Intel/Windows version of these functions.
kung foo man
 

Re: Compile inline assembly with mingw on Windows

Postby Julio Jerez » Sun Nov 22, 2015 6:57 pm

Get Newton 3.13 from github, it does not have any assembly code.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests