News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

to get VC++ generate asm?

Started by daydreamer, February 19, 2019, 03:29:02 AM

Previous topic - Next topic

fearless

Quote from: daydreamer on February 23, 2019, 09:23:56 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.

TimoVJL

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

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

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
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

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
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

TimoVJL

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

Quote from: TimoVJL 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.
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
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

I got a 415kb asm file  :rolleyes:

it feels like I should do a different approach on this
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

VC++ wizard generates 46kb small.ico ,+46kb the normal .ico files,now trying to make my own maybe it would be possible to cut down on size,the windows program without the debug usually endup 120kb,console only end up about 22kb,so I suspect about 100kb of it is the resource files???
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

I have tested vc++ and also masm produced exe on several different machines
Win10 seem to have standard installed directd and c runtime, but on win8 first works after download and install crt
On WinXP it gives similar message as try run 64bit Exe on 32bit os,something like "this is not a 32bit exe ",strange it's compiled x86
But the good part is I went back to masm32 development and the call macros combined with string macros are great for Windows programming
And works great on ancient xp machine,  2ghz amd
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

Vortex

Hello daydreamer,

QuoteOn WinXP it gives similar message as try run 64bit Exe on 32bit os,something like "this is not a 32bit exe ",strange it's compiled x86

I think Windows XP does not like the build numbers ( OSMajor and OSMinor version numbers ) in the Windows PE header. Could you check it?