Author Topic: Confusion about Architecture Selection (AVX or SSE)  (Read 359 times)

johnsa

  • Member
  • ***
  • Posts: 463
    • Uasm
Re: Confusion about Architecture Selection (AVX or SSE)
« Reply #15 on: September 10, 2017, 07:51:50 AM »

I say... when you can't please everyone, which you never can.. at least please yourself :)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4754
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Confusion about Architecture Selection (AVX or SSE)
« Reply #16 on: September 10, 2017, 11:31:32 AM »
 :biggrin:

> This sub-forum is dedicated to the development of UASM which is written in C so you shouldn't be all that surprised if C code is frequently posted here as part of this development.

On the user end, few would care if the assembler was cobbled together in FORTRAN but it does not mean that the user of the assembler needs to write their assembler code using standard FORTRAN notation and/or assumptions.

Note that I mention FORTRAN in upper case as green monochrome screen were truly terrible things to use that sent the users blind and mad and had to enter their data (after punch cards) in upper case so they could actually see what they were doing. This was a generation that grew up scrawling nonsense in flow charts and sending the instructions up to the girls in the punch card room.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

nidud

  • Member
  • *****
  • Posts: 1359
    • https://github.com/nidud/asmc
Re: Confusion about Architecture Selection (AVX or SSE)
« Reply #17 on: September 10, 2017, 08:41:59 PM »
On the user end, few would care if the assembler was cobbled together in FORTRAN but it does not mean that the user of the assembler needs to write their assembler code using standard FORTRAN notation and/or assumptions.

 :biggrin:

Just to make this clear, the sample used do not include any C calling convention: it's 64-bit.

Well, the crash-bug is below 2048. However, counts above only works with unsigned values so this fails:
Code: [Select]
    .x64
    .model  flat, fastcall

    option  dllimport:<msvcrt>
    printf  proto :ptr byte, :vararg
    exit    proto :qword

This means that the assembler was cobbled together using the same calling convention and libraries as the assembler code.