Author Topic: to get VC++ generate asm?  (Read 2016 times)

fearless

  • Member
  • ***
  • Posts: 458
    • LetTheLightIn
Re: to get VC++ generate asm?
« Reply #15 on: March 15, 2019, 02:34:25 AM »
no idea what this jmps/calls do,but they have nothing todo with SSE
the __ftol2_sse is a ms visual c library function to convert float to long - the code in __ftol2_sse checks to see if it can use sse to calc that, otherwise it defaults to whatever normal non sse code is in that function.
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter

TimoVJL

  • Member
  • ***
  • Posts: 408
Re: to get VC++ generate asm?
« Reply #16 on: March 15, 2019, 03:13:32 AM »
To avoid SSE:
/QIfist[-] use FIST instead of ftol()
/arch:IA32 - use no enhanced instructions and use x87 for floating point
May the source be with you

daydreamer

  • Member
  • ****
  • Posts: 894
  • watch Chebyshev on the backside of the Moon
Re: to get VC++ generate asm?
« Reply #17 on: March 16, 2019, 04:51:21 AM »
thanks Steve,Timo,fearless
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
what cpu handle "press any key"? any cpu of course(from C#) :D

daydreamer

  • Member
  • ****
  • Posts: 894
  • watch Chebyshev on the backside of the Moon
Re: to get VC++ generate asm?
« Reply #18 on: May 11, 2019, 01:47:15 AM »
this IDE and C++ compiler seem like a way to make a bigger project,mixing masm code and C++ code
enjoy use masm code in a project,while C++ code to make you more productive where speed doesnt matter, to maybe finally put together a big project
but also fun in compare a long switch with a jumptable
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
what cpu handle "press any key"? any cpu of course(from C#) :D

daydreamer

  • Member
  • ****
  • Posts: 894
  • watch Chebyshev on the backside of the Moon
Re: to get VC++ generate asm?
« Reply #19 on: August 07, 2019, 04:49:10 AM »
it would be nice to learn howto also make macros inside VC++,because I read "_inline" is just bad suggestion to compiler that its probably not will follow
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
what cpu handle "press any key"? any cpu of course(from C#) :D

TimoVJL

  • Member
  • ***
  • Posts: 408
Re: to get VC++ generate asm?
« Reply #20 on: August 07, 2019, 09:17:04 PM »
Why ?
msvc x64 don't support inline  assembler.
read about msvc __forceinline, if you just stick with 32-bit.

I don't know how those #defines affect to optimizer.


May the source be with you

daydreamer

  • Member
  • ****
  • Posts: 894
  • watch Chebyshev on the backside of the Moon
Re: to get VC++ generate asm?
« Reply #21 on: August 09, 2019, 02:22:15 AM »
Why ?
msvc x64 don't support inline  assembler.
read about msvc __forceinline, if you just stick with 32-bit.

I don't know how those #defines affect to optimizer.
thanks,because if SIMD needs other things than an assembler to keep on using,I have checked alternatives intrinsic looks like it has similarities to assembler but more lot complex and longer than the usual mnemonics to type
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
what cpu handle "press any key"? any cpu of course(from C#) :D