Author Topic: Notes about ML64 and h2incX includes and libraries  (Read 10320 times)

jj2007

  • Member
  • *****
  • Posts: 13951
  • Assembly is fun ;-)
    • MasmBasic
Re: Notes about ML64 and h2incX includes and libraries
« Reply #30 on: May 01, 2021, 04:45:21 AM »
There are a number of other assemblers that don't use ML style prototypes, FASM, GAS among others.

Fascinating:
Code: [Select]
extern __imp_MAPISendMail:PANYARGS
You can just pass any args to SendMail! And it works, most of the time! No PROTOs! Why oh why do the so-called "professional" C/C++ coders waste their precious time with studying their stupid compilers' type error and/or arg count messages?

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Notes about ML64 and h2incX includes and libraries
« Reply #31 on: May 01, 2021, 08:21:54 AM »
> Why oh why do the so-called "professional" C/C++

Easy, they are writing C/C++.

Now here is a question, why oh why do you time your macros and blame it on MASM. Why oh why don't you impose the same macros on the Watcom derivatives.

Why oh why are you so desperately trying to find  the characteristics of a visual garbage generator when you could easily find something that could generate a 1 gig Hello World /
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13951
  • Assembly is fun ;-)
    • MasmBasic
Re: Notes about ML64 and h2incX includes and libraries
« Reply #32 on: May 01, 2021, 08:24:53 AM »
Now here is a question, why oh why do you time your macros and blame it on MASM. Why oh why don't you impose the same macros on the Watcom derivatives.

I do.

Have you timed it with one of your "serious" 64-bit sources? I am curious. Unfortunately, I am still stuck with my 32-bit sources, for example, the 22+ kLines of the RichMasm editor:

Code: [Select]
ML 10.0 build all took 2185 ms
UAsm64 build all took 1688 ms
AsmC build all took 1259 ms

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Notes about ML64 and h2incX includes and libraries
« Reply #33 on: May 01, 2021, 09:19:10 AM »
 :biggrin:

So you are saying you use your version of invoke, not the native Watcom derivative invoke ?
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13951
  • Assembly is fun ;-)
    • MasmBasic
Re: Notes about ML64 and h2incX includes and libraries
« Reply #34 on: May 01, 2021, 09:20:11 AM »
In 64-bit code, yes. But the timings above are obviously for 32-bit code.

LiaoMi

  • Member
  • *****
  • Posts: 1055
Re: Notes about ML64 and h2incX includes and libraries
« Reply #35 on: May 03, 2021, 07:50:43 PM »
Hi LioMi!

 :biggrin:  :biggrin: :biggrin:

Code: [Select]
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

 Assembling: mcalc.asm
Microsoft (R) Incremental Linker Version 14.00.24213.1
Copyright (C) Microsoft Corporation.  All rights reserved.

 El volumen de la unidad C no tiene etiqueta.
 El nĂºmero de serie del volumen es: 1000-D537

 Directorio de C:\masm32\examples64\mcalc

28/04/2021  08:55            27.265 mcalc.asm
28/04/2021  09:24                16 mcalc.bin
29/04/2021  12:59            32.768 mcalc.exe
11/10/2018  22:19               978 mcalc.inc
29/04/2021  12:59            24.267 mcalc.obj
               5 archivos         85.294 bytes
               0 dirs  374.203.731.968 bytes libres
Presione una tecla para continuar . . .

This is about ML64 and Biterider's includes (they are in ObjAsm SDK), not about UASM logic. Anyway I don't see problems using modified includes with UASM, just that NMHDR.code is very used in ObjAsm examples (but is because I changed the name in the structure).


I don't remember a problem with SHORT, perhaps is other translation.

In Hutch2.zip there is a macros64.asm. I think is Hutch original, but with 4 forced expansions of reparg. You can make a diff with your macros64.asm

If you have time, perhaps you can test the modifications to macros64.asm that are under study.

Hi HSE,

what has been said is true of course, but previously there was a question of compatibility. My trials did not always go smoothly, and I often had syntax problems. It would be nice to test on both versions at once, that's what I wanted to do, and where I ran into a lot of inconsistencies  :azn:

I will try new macros, there are two whole versions, your modification and an update from Hutch  :tongue:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Notes about ML64 and h2incX includes and libraries
« Reply #36 on: May 03, 2021, 08:15:54 PM »
Funny part is the calculator was an exercise in interface design, the arithmetic was simple SSE2, the rest was trying to make it look presentable. It came out OK but I have no doubt it could be done a lot better.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

HSE

  • Member
  • *****
  • Posts: 2499
  • AMD 7-32 / i3 10-64
Re: Notes about ML64 and h2incX includes and libraries
« Reply #37 on: May 03, 2021, 11:32:59 PM »
and where I ran into a lot of inconsistencies  :azn:
Others than those enumerated before?

I will try new macros, there are two whole versions, your modification and an update from Hutch  :tongue:
Fantastic  :thumbsup:
Equations in Assembly: SmplMath