News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Parameters of SEGMENT directives

Started by Quan, June 09, 2025, 08:29:02 PM

Previous topic - Next topic

stoo23

QuoteI use ML from Visual Studio, the free community version.
There is a link to download the tools somewhere on the forum.
Yes there was at least One thread with references and links to it here .... somewhere ...
Perhaps we Should provide an easily accessible and findable link to the most appropriate updated version for use with the MASM32 SDK.

Perhaps even Include it, along with any other items that require updating and bringing up to speed as it were in a Contemporary version release of the SDK ???

Quan

Quote from: sinsi on June 10, 2025, 04:46:03 PM
Quote from: Quan on June 10, 2025, 02:07:24 PMAlso my ML.exe seems to be super outdated compared to yours. And I wasn't aware of a way to update ML.exe, where can I find that?
Microsoft (R) Macro Assembler Version 6.14.8444
I use ML from Visual Studio, the free community version.
There is a link to download the tools somewhere on the forum.
Hi, so I did try out an updated version of ml.exe and it worked. I did have to do some tweakings with the \masm32\include\winextra.inc file as mentioned in this topic. Hopefully that's the only thing I have to do to make it work normally.



Quote from: NoCforMe on June 10, 2025, 07:00:05 PMWell now that you've satisfied your curiosity I'd really, really recommend just sticking with the regular simplified segment directives.
Quote from: Vortex on June 11, 2025, 05:08:27 AMIt's preferable to use the simplified directives like .data and .code
Yea, will do  :thumbsup:

daydreamer

Also prefer use
.data? If you have big arrays put them there instead otherwise it makes exe bigger
@Stewart might be good suggestions, it only supports SSE,
Especially ml 6.14 bug that makes it take an eternity when using creating big arrays in. Data section :thumbsup:
I prefer uasm because it supports all SIMD instructions and don't have that  ml 6.14 bug


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

jj2007

Quote from: daydreamer on June 11, 2025, 05:56:50 PMEspecially ml 6.14 bug that makes it take an eternity when using creating big arrays

Yeah, that bug is a nuisance, but there is a workaround:

include \masm32\include\masm32rt.inc

.data?
Buffersize=16777216 ; 16 MB
MyFatArray LABEL byte
  ORG $+Buffersize-1
  db ?
EndofArray db ?

.code
start:
  mov EndofArray, "e"
  mov ecx, Buffersize
  mov al, "x"
  mov edi, offset MyFatArray
  int 3
  rep stosb
  MsgBox 0, "Buffer filled!", "Hi", MB_OK
  exit

end start

Builds in 400 milliseconds with MASM 6.14 (and in 200 milliseconds with UAsm) :cool:

daydreamer

Quote from: jj2007 on June 11, 2025, 06:55:03 PM
Quote from: daydreamer on June 11, 2025, 05:56:50 PMEspecially ml 6.14 bug that makes it take an eternity when using creating big arrays

Yeah, that bug is a nuisance, but there is a workaround:

include \masm32\include\masm32rt.inc

.data?
Buffersize=16777216 ; 16 MB
MyFatArray LABEL byte
  ORG $+Buffersize-1
  db ?
EndofArray db ?

.code
start:
  mov EndofArray, "e"
  mov ecx, Buffersize
  mov al, "x"
  mov edi, offset MyFatArray
  int 3
  rep stosb
  MsgBox 0, "Buffer filled!", "Hi", MB_OK
  exit

end start

Builds in 400 milliseconds with MASM 6.14 (and in 200 milliseconds with UAsm) :cool:

Cool  :thumbsup:
But I always thought using uasm on fastest ssd,vs one of my old 4x rewritable DVD mostly the milliseconds output is depending on drive speed?

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

jj2007

Drive speed is irrelevant thanks to the file cache.

daydreamer

Quote from: jj2007 on June 11, 2025, 10:23:50 PMDrive speed is irrelevant thanks to the file cache.
Big assemble project like masmbasic?
Might suspect disk cache speed and size also been also improved over the years,from very old few gb drive to modern several tb drive



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

jj2007

Quote from: daydreamer on June 12, 2025, 05:14:17 AMBig assemble project like masmbasic?

37 obj files with a total of 133kBytes, less than five seconds with UAsm. Now time what it needs to write 133kB to disk...

421 ms for 100*2948888 bytes