Author Topic: masm64rt & masm32rt  (Read 4651 times)

mabdelouahab

  • Member
  • ****
  • Posts: 537
masm64rt & masm32rt
« on: August 30, 2016, 01:15:23 AM »
It's just a comparison:

Code: [Select]
.486                                     
.model flat                       
.code
Start:
End Start
ML: Total compile time 78 ms

Code: [Select]
.code
main proc
main endp
end 
ML64: Total compile time 78 ms

well but

Code: [Select]
include \masm32\include\masm32rt.inc
.code
Start:
End Start
ML: Total compile time 328 ms
Code: [Select]
include \masm64\include\masm64rt.inc
.code
main proc
main endp
end
ML64: Total compile time 1984 ms

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: masm64rt & masm32rt
« Reply #1 on: August 30, 2016, 09:11:25 AM »
That makes sense, the number of include files and libraries make the difference. I confess I have never particularly worried about assemble / compile times on modern machines, it was a pain on old hardware 20 years ago but the speed difference of modern hardware solves the problem. What I am worried about is the performance of the finished binary.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: masm64rt & masm32rt
« Reply #2 on: August 30, 2016, 11:22:04 AM »
With the dual 64/32 assembly examples (updated today), the assemble & link times are only marginally longer than for plain MASM32 files.

Timings for my Core i5 cpu:
The console example needs 400 ms with ML64 and JWasm, 270 ms with AsmC
The window template needs 500 ms with ML & (H)JWasm, 360 ms with AsmC

ML64: Total compile time 1984 ms

That is clearly too much for a Hello World. For comparison, the RichMasm source with its 18k lines takes less than 900ms 8)